Jump to content

time date count down


steveclondon

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.