I am not sure what is wrong. I am instantiating a new Date object using the below values.
var thisDate:Date = new Date(2011, 12, 2, 9, 30);
But when I did a trace, I got
Mon Jan 2 09:30:00 GMT+0800 2012.
Why is the date wrong?
Thanks in advance!
Months range from 0 to 11, so if your intention is to specify December, you need to specify 11 instead of 12. You should look up the Date class in the help docs if there are any other aspects of the constructor that you don't think are correct.
Thanks! I should have caught this.