Months start at 0 and go up to 11.

Don't ask me why.

John

2012/1/12 luvfotography <ygro...@all-digital-links.com>

> **
>
>
>
> http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/Date.html#methodSummary
>
> says:
>
> If you pass two or more arguments, the Date object is assigned a time
> value based on the argument values passed, which represent the date's year,
> month, date, hour, minute, second, and milliseconds.
>
>
> --- In flexcoders@yahoogroups.com, "luvfotography" <ygroups@...> wrote:
> >
> > Why does:
> > trace((new Date(2012,01,15)).toString());
> > and
> > trace((new Date('2012','01','15')).toString());
> >
> > return:
> >
> > Wed Feb 15 00:00:00 GMT-0800 2012
> >
> > February??
> >
>
>  
>



-- 
John

*You're old enough to make your own decisions about the environment without
me telling you what you should and shouldn't print. But if you do print, I
hope this signature doesn't cause the message to go onto an additional
page. Because that would be kind of stupid, wouldn't it?*

Reply via email to