Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

jquery Countdown

Posted on 2010-08-26
3
574 Views
Last Modified: 2012-05-10
Hi there,

Could someone explain to me how the Date shown  below works?

(This is a parameter in  the Jquery CountDown Javascript package... the link to it is below.)

until: new Date(2012, 8 - 1, 8), timezone: +10

I mean: 2012 is the year, but what are the other numbers, and the dash?

Thanks!
fskilnik

Link: http://keith-wood.name/countdownRef.html#labels
0
Comment
Question by:fskilnik
3 Comments
 
LVL 82

Expert Comment

by:leakim971
ID: 33537947
when you create a date with JS you mays use : new Date(year, month, day)

the month is particular, month start from 0 to 11. So you need to remove (the dash) 1

read this : http://www.w3schools.com/jsref/jsref_getmonth.asp

and this (new Date(y,m,d) : http://www.w3schools.com/jsref/jsref_obj_date.asp
0
 
LVL 6

Accepted Solution

by:
DalHorinek earned 500 total points
ID: 33537962
8-1 is a month

Months are 0 - 11, so it's august (8) but js need 7 (8-1)

and the other 8 is a day, so this date is 08-08-2012

0
 

Author Comment

by:fskilnik
ID: 33538164
Thank you both, but I guess DalHorinek solved exactly my doubts!

Regards,
fskilnik.

P.S.: I will open another EE post at the next minutes on the same matter, because I still could not use the until property with success. Please do have a look at my new (JQuery) doubt!
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jquery conditionally populate list boxes 2 38
jQuery Validate 4 46
How to reload page and grab querystring 2 21
JQuery Search Filter 2 27
Hi all! Recently there was EE question and the person wanted to have a multi-column textbox <div> selection, so as a first step to answer I provided a link but that was not complete with JavaScript selection, but had a good style sheet. So as a ques…
Introduction JSON is an acronym for JavaScript Object Notation.  It is a text-string data transport mechanism, capable of representing simple or complex data structures in a consistent and easy-to-read manner.  Similar in concept to XML, but more e…
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question