www.webdeveloper.com
Results 1 to 2 of 2

Thread: Help w/ jQuery Countdown Date Syntax

  1. #1
    Join Date
    Jan 2003
    Posts
    216

    Question 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:

    http://keith-wood.name/countdown.html

    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:

    http://keith-wood.name/countdownRef.html

    The parameter in question is the "until" parameter.

    Any help would be greatly appreciated. Thank you.

  2. #2
    Join Date
    Jan 2003
    Posts
    216
    After some testing, it looks like I can do this:

    Code:
    $(SELECTOR).countdown({
    	until: new Date(2013, 3-1, 9+1, 7, 24, 49),
    	format: 'HMS',
    	compact: true
    });
    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?

    Thank you again.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles