pneudralics Posted July 13, 2009 Share Posted July 13, 2009 //$date Saved in db as 2009-05-01 $date = strtotime ($row['date']); $date2= date ("d M,$date"); echo ""$date2; //shows 13 Jul,1245906000 Trying to get it to show day Month like 21 June but it keeps showing the current date and the strotime. Link to comment https://forums.phpfreaks.com/topic/165834-i-cant-get-the-date-from-mysql-to-display-more-friendly-with-php/ Share on other sites More sharing options...
wildteen88 Posted July 13, 2009 Share Posted July 13, 2009 You're not using date right. It should be $date2= date ("d M", strtotime($date)); Link to comment https://forums.phpfreaks.com/topic/165834-i-cant-get-the-date-from-mysql-to-display-more-friendly-with-php/#findComment-874712 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.