Try setting the date before you set the month? I think setting the month while the current day is later than 28 is going to roll the month on you potentially? Just by reording that I got it to work. When I tried to set the Date's time to 0 to avoid it using the current date that didn't seem to fix things...
It does feel like an odd error though. Might be worth filing a Flash Player bug at http://bugs.adobe.com/jira. Though would be good to test JavaScript to see if it behaves the same. Matt On 7/29/08 2:14 PM, "aceoohay" <[EMAIL PROTECTED]> wrote: Just as a test I used the following; dtTest = new Date(1987,1,3,0,0,0,0); This returned; dtTest.toDateString()=Tue Feb 3 1987 which is what I expected. I am so confused. Any ideas? Paul --- In [email protected] <mailto:flexcoders%40yahoogroups.com> , "aceoohay" <[EMAIL PROTECTED]> wrote: > > The following code yields unexpected results on a date; > > var dtTest:Date = new Date; > dtTest.fullYear = 1987; > dtTest.month = 1; > dtTest.date = 3; > trace('dtTest.toDateString()=' + > dtTest.toDateString()); > > The result is; > > dtTest.toDateString()=Tue Mar 3 1987 > > It is my understanding that this should be February not March. What am > I doing wrong? or is there a bug in the Date object? > > Paul >

