day and month are constant pointers where as year and date are variable values?

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Sönke Rohde
Sent: Friday, March 03, 2006 9:11 AM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] AS3 Date month starting at 0?

 

but why is month starting at 0 and day at 1?

seems very strange to me.

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Johannes Nel
Sent: Friday, March 03, 2006 3:04 PM
To: flexcoders@yahoogroups.com
Subject: Re: [flexcoders] AS3 Date month starting at 0?

this is expected behaviour i think

On 3/3/06, Sönke Rohde <[EMAIL PROTECTED]> wrote:

Hi,
Using the AS3-Date-Class the first time I recognized that the month is
starting at 0 means 0 is January. Is this the expected behaviour?

Example:
var d:Date = new Date("2006","03","22");
trace("date " + d); // date Sat Apr 22 00:00:00 GMT+0200 2006

And another date I tried has a different GMT:
var d:Date = new Date("2006","10","18");
trace("date " + d); // date Sat Nov 18 00:00:00 GMT+0100 2006

Is this a known issue/bug or am I doing something wrong?

Cheers,
Sönke



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/






--
j:pn
http://www.lennel.org



--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to