phpretard Posted May 25, 2010 Share Posted May 25, 2010 I have the date stored in a database as: $date = 2010-05-25 07:43:35 I had a function but I can't find it now. <? readDate($date); ?> It returned this: 05-25-2010 07:43:35 Does anyone have something like this? -Ant Quote Link to comment Share on other sites More sharing options...
Barand Posted May 25, 2010 Share Posted May 25, 2010 echo date ('m-d-Y H:i:s', strtotime($date)); 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.