Link to home
Start Free TrialLog in
Avatar of fskilnik
fskilnikFlag for Brazil

asked on

jquery Countdown

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
Avatar of leakim971
leakim971
Flag of Guadeloupe image

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
ASKER CERTIFIED SOLUTION
Avatar of DalHorinek
DalHorinek
Flag of Czechia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of fskilnik

ASKER

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!