March 9th, 2013, 08:46 AM
Help w/ jQuery Countdown Date Syntax
I'm using the jQuery Countdown plug-in to display a countdown on my site. Here is the plug-in:
I'm having trouble setting the "until"/countdown date. I need it to be exactly 24 hours after a specified date. This specified date includes year, month, day, hour, and second. Is this possible?
Here's the reference page:
The parameter in question is the "until" parameter.
Any help would be greatly appreciated. Thank you.
Last edited by msmith29063; March 9th, 2013 at 09:49 AM.
March 9th, 2013, 10:16 AM
After some testing, it looks like I can do this:
I was concerned that I couldn't just add "+1" to the day field. But I tested with adding a day to 12/31 and it still worked. Is this correct?
until: new Date(2013, 3-1, 9+1, 7, 24, 49),
Thank you again.