Jump to content

Date Format


-twenty

Recommended Posts

Hi all, this is a simple one but it has be stumped. I'm storing the date in my database as 2010-01-01. I'd like it formatted a little nicer when I return the output to the user, so I'm doing this...

echo "<td>". date("D, j M", $$ordersrow['requiredby']) ."</td>\r\n";

Though, the returned output is Wed, 31 Dec and not Fri, 1 Jan.

 

Help?

Link to comment
https://forums.phpfreaks.com/topic/183465-date-format/
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.