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'])); Link to comment https://forums.phpfreaks.com/topic/102004-time-date-count-down/ 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 Link to comment https://forums.phpfreaks.com/topic/102004-time-date-count-down/#findComment-522055 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. Link to comment https://forums.phpfreaks.com/topic/102004-time-date-count-down/#findComment-522109 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 Link to comment https://forums.phpfreaks.com/topic/102004-time-date-count-down/#findComment-522129 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.