|
|
|
![]() |
|
|||||||
|
||||||||
|
|
Thread Tools |
Rating:
|
Display Modes |
|
#8
|
||||
|
||||
|
Re: New Countdown To Kickoff 2015 Website
I decided to use the milliseconds and convert it over with this code
Code:
var d = new Date(); var time_until = (kickoff_date - d.getTime()); var days = Math.floor(time_until/86400000); time_until = time_until%86400000 var hours = Math.floor(time_until/3600000); time_until = time_until%3600000 var minutes = Math.floor(time_until/60000); time_until = Math.floor(time_until%60000); var seconds = Math.floor(time_until/1000); var milliseconds = Math.floor(time_until%1000); |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|