wmguk Posted September 5, 2008 Share Posted September 5, 2008 Hi guys, ive got a timestamp in a DB... I've got code, to format it on the page, however i just get 1st January 1970 $date = $row['pdate']; echo date('jS F Y', $date) ; Any ideas? Link to comment https://forums.phpfreaks.com/topic/122926-solved-date-issue/ Share on other sites More sharing options...
discomatt Posted September 5, 2008 Share Posted September 5, 2008 try echo'ing just $date.. what do you get? Link to comment https://forums.phpfreaks.com/topic/122926-solved-date-issue/#findComment-634874 Share on other sites More sharing options...
wmguk Posted September 5, 2008 Author Share Posted September 5, 2008 hey, I echo'd date and i get 2008-09-05 so i used <? echo date("jS F Y", strtotime($date)) ; ?> and that has worked.... Link to comment https://forums.phpfreaks.com/topic/122926-solved-date-issue/#findComment-634875 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.