Jump to content

Archived

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

HakonHoy

date/time displaying..

Recommended Posts

I have a field called: news_date in a my sql db... it is a "datetime" thing, and it stores the date in this format 0000-00-00 00:00:00 .. how can I display the date in other formats? eg. the day and the month ?

Share this post


Link to post
Share on other sites
You need to look (carefully) at table 1 in the [a href=\"http://ca.php.net/manual/en/function.date.php\" target=\"_blank\"]date() function in the manual[/a]. Look over the user notes as well, and you'll find an example of what you're trying to do.

Share this post


Link to post
Share on other sites

×

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.