I'm working on a site for a client where he needs a countdown timer to count down to 10pm two days from each site update. (or however many days he wishes to enter) The countdown functions perfectly in Google Chrome but in Internet Explorer and Firefox it shows NaN NaN. I've read this means "not a number" so is there something wrong with the way my code in calculating the date information? Any help would be appreciated! My code is below:
Your date format won't work in Firefox (and apparently IE). This:
NaN in Firefox. Firefox likes dates like
"Dec 31, 2013" or ISO dates like
"2011-10-10T14:48:00". More information at MDN.