JavaScript Development
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsWeb DesignJavaScript Development

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 9th, 2013, 08:46 AM
msmith29063 msmith29063 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 202 msmith29063 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 26 m 46 sec
Reputation Power: 10
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://www.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://www.keith-wood.name/countdownRef.html

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.

Reply With Quote
  #2  
Old March 9th, 2013, 10:16 AM
msmith29063 msmith29063 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Feb 2004
Posts: 202 msmith29063 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 23 h 26 m 46 sec
Reputation Power: 10
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.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignJavaScript Development > Help w/ jQuery Countdown Date Syntax

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap