xProteuSx Posted March 31, 2009 Share Posted March 31, 2009 I currently have a bunch of dates and times in a database in the following format: 2009-02-25 00:29:55 Essentially, I would like to change the format to: 02/25/2009 Is there a function for this? Link to comment https://forums.phpfreaks.com/topic/151872-solved-changing-date-format/ Share on other sites More sharing options...
Philip Posted March 31, 2009 Share Posted March 31, 2009 echo date('n/j/Y', strtotime('2009-02-25 00:29:55')); Link to comment https://forums.phpfreaks.com/topic/151872-solved-changing-date-format/#findComment-797516 Share on other sites More sharing options...
xProteuSx Posted March 31, 2009 Author Share Posted March 31, 2009 Philip, your Majesty, thank you. Link to comment https://forums.phpfreaks.com/topic/151872-solved-changing-date-format/#findComment-797538 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.