I'm using Flex builder 3 with SDK 3.50.13683.
When I create a new Date variable in Jan 29-31, I will get Feb. 1-3. Is this a BUG?
For example, if I use:
"var day:Date = new Date(2009,1,29);"
I will get actually 2009.2.1 in this "day" variable.... What's wrong?
I have tried SDK 220.127.116.1184 and also tried the year 2007 and 2008, all the same!
I can't get a Date in any Jan 29-31!!!
Any solution? Thanks.
Months start counting from 0!! So month # 1 is februrary.
"var day:Date = new Date(2009,0,29);" will produce January, 29th.
This aint a Bug.. to get Jan 29 as a required date you need to write:
var day:Date = new Date(2009,0,29);
The second parameter should be '0' instead of '1' to get any date in the month of Jan
Let me know if it helps