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 Link to comment https://forums.phpfreaks.com/topic/202819-reading-the-date-function/ 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)); Link to comment https://forums.phpfreaks.com/topic/202819-reading-the-date-function/#findComment-1062938 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.