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. Quote 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)); Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.