se sei su MySQL, converti il dato direttamente nella query
http://dev.mysql.com/doc/refman/5.5/...on_date-format