cowboysdude Posted June 4, 2008 Share Posted June 4, 2008 I have my code.. but I cannot figure out how to get it to print in the correct format.. I have been EVERYWHERE and I've been trying for 5 days now... PULLING MY HAIR OUT..lol here's what I have: <b>User Since: <font color="red"> <?php echo $registerDate;?></b></font><br> and it prints out the registerDate of the user who is logged on fine.. except it shows like this... 2008-05-05 20:28:22 I want it to print out like this 05-05-2008 That's it... Thanks for your help!! Link to comment https://forums.phpfreaks.com/topic/108617-solved-date_format-question/ Share on other sites More sharing options...
pocobueno1388 Posted June 4, 2008 Share Posted June 4, 2008 http://dev.mysql.com/doc/refman/5.0/en/date-and-time-functions.html#function_date-format Link to comment https://forums.phpfreaks.com/topic/108617-solved-date_format-question/#findComment-557150 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.