mikefrederick Posted November 7, 2008 Share Posted November 7, 2008 I just grabbed a time from my database that was put in there a couple days ago using strtotime(date('m/d/Y')); When I echo date('m/d/Y',$grabbed_date); I get today's date. BUT, when I echo strtotime(date('m/d/Y')); it does not equal the grabbed date. Why is this? Quote Link to comment Share on other sites More sharing options...
zenag Posted November 7, 2008 Share Posted November 7, 2008 here $grabbed_date must be string....single or double quoted... $grabbed_date='20-03-2008'; echo date('m/d/Y',strtotime($grabbed_date)); Quote Link to comment 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.