HakonHoy Posted March 12, 2006 Share Posted March 12, 2006 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 ? Quote Link to comment Share on other sites More sharing options...
AndyB Posted March 12, 2006 Share Posted March 12, 2006 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. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.