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 Quote 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"); Quote 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 Quote 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 Quote Link to comment https://forums.phpfreaks.com/topic/199296-help-with-datetime/#findComment-1046021 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.