mattm1712 Posted April 21, 2010 Share Posted April 21, 2010 hi i have the code $date = date("d-M-Y",$array['date']); i am echoing out the date correctly but i want to echo the time aswel but not sure how i have tried $date = date("d-M-Y",time(),$array['date']); but no luck can any1 help? cheers matt Link to comment https://forums.phpfreaks.com/topic/199296-help-with-datetime/ Share on other sites More sharing options...
i8grand Posted April 21, 2010 Share Posted April 21, 2010 $date = date("d-M-Y g:i:s"); Link to comment https://forums.phpfreaks.com/topic/199296-help-with-datetime/#findComment-1046013 Share on other sites More sharing options...
pfkdesign Posted April 21, 2010 Share Posted April 21, 2010 Hi, $date = date("d-M-Y h:i:s", $array['date']); Regards Link to comment https://forums.phpfreaks.com/topic/199296-help-with-datetime/#findComment-1046019 Share on other sites More sharing options...
mattm1712 Posted April 21, 2010 Author Share Posted April 21, 2010 cheers thats sorted nice one guys Link to comment https://forums.phpfreaks.com/topic/199296-help-with-datetime/#findComment-1046021 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.