Months start at 0 and go up to 11.
Don't ask me why.
John
2012/1/12 luvfotography <ygroups@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?
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Alternative FAQ location: https://share.acrobat.com/adc/document.do?docid=942dbdc8-e469-446f-b4cf-1e62079f6847
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
MARKETPLACE
.
__,_._,___
0 comments:
Post a Comment