I am instantiating a Javascript Date object in my script using the setFullYear, setMonth,....methods in the Date object. But the resulting Date object shows the year and month as 1+. For example if I set the year to 2012 and month to 12. The Date object would show up as 2013, January....
How can I avoid this?
Thanks.