ChrisMartino Posted September 3, 2010 Share Posted September 3, 2010 Hey there, Thanks for taking the time to read my thread. My issue is if I'm given a time stamp in PHP how could I calculate the number of days until that time stamp?. Thanks for your time. Quote Link to comment Share on other sites More sharing options...
taquitosensei Posted September 3, 2010 Share Posted September 3, 2010 $days=ceil(strtotime($future_timestamp)-strtotime(date("Y-m-d"))/86400) 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.