Jump to content

Select Date Help


studgate

Recommended Posts

I have the date in my database like yyyy/mm/dd (2000/01/01)

and I want to select it from the database as mm/dd/yyyy(01/01/2000)

the date column is "date_ur"

What I have is:

$sql_date = mysql_query("SELECT date_format(date_ur, '%M %D %Y') as date, COUNT(*) as num FROM table GROUP BY date  ORDER BY date") or die("Error in $strsql\n" . mysql_error());

I am not getting anything right now. What am I doing wrong??

Any help is welcome!

Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/41703-select-date-help/
Share on other sites

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.