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? Quote Link to comment 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')); Quote Link to comment Share on other sites More sharing options...
xProteuSx Posted March 31, 2009 Author Share Posted March 31, 2009 Philip, your Majesty, thank you. 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.