Groups | Blog | Home
all groups > flash (macromedia) > april 2004 >

flash (macromedia) : new DATE() returning invalid date



PsyberJake
4/20/2004 9:19:11 PM
Hi there...

Im trying to get a new DATE object with the following:

_global.FutureDate = new Date(2004,7,20);

The date returned with:

_global.FutureDate.toString();

is:

August, 20 2004. Not July 20

Im confused.

Its making my Date Math REALLY messed up.

Anyone reproduce? or have an idea?
Laiverd.COM
4/20/2004 11:33:53 PM
Months start counting at 0, not 1.

--
----------------------------------------------------------------------------
-----------
RESOURCES
http://groups.google.com/advanced_group_search?hl=en&as_ugroup=*flash
----------------------------------------------------------------------------
-----------
TUTORIALS at
www.laiverd.com
Flash & PHP Emailform
Using textfiles in Flash
----------------------------------------------------------------------------
-----------

AddThis Social Bookmark Button