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? Quote 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? Quote 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.... Quote Link to comment https://forums.phpfreaks.com/topic/122926-solved-date-issue/#findComment-634875 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.