Jump to content

Really Simple Date Question


Mateobus

Recommended Posts

You can also do it at your query level as well:

[code]$query= "Select DATE_FORMAT(date_date,'%M %D %Y') AS sortdate from your_table ORDER BY date_date ASC"; /* ORDER BY function orders ascending (ASC) or descending(DESC) */

echo $sortdate;
[/code]

Also, search the MySQL site for the different formats you can use for DATE_FORMAT()...

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.