Question about ordering

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

in mysql a date is like '2005-01-20' http://dev.mysql.com/doc/mysql/en/DATETIME.html

for outputting in your dd-mm-yyyy you could use DATE_FORMAT()
http://dev.mysql.com/doc/mysql/en/Date_ ... tions.html
Post Reply