steveclondon Posted April 20, 2008 Share Posted April 20, 2008 I have a future date in the following format yyyymmddhhmmss, I want to take away todays date from this, then display the number of days, mins, seconds as a count down. I can covert date date format and add extra days etc to get new dates as shown below adding one day. This is using a $date array that has split the date format into each part. $setDate=date("Ymdhis", mktime($date['hour'], $date['mins'], $date['seconds'], $date['monthNumber'], $date['day']+1, $date['year'])); Quote Link to comment Share on other sites More sharing options...
p2grace Posted April 20, 2008 Share Posted April 20, 2008 You'd have to use ajax or javascript to show a live countdown Quote Link to comment Share on other sites More sharing options...
unidox Posted April 20, 2008 Share Posted April 20, 2008 Make an iframe, then just refresh the frame every 1 sec. Quote Link to comment Share on other sites More sharing options...
monkeypaw201 Posted April 20, 2008 Share Posted April 20, 2008 http://www.ricocheting.com/js/countdown.html Give that a shot 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.