Announcement

Collapse
No announcement yet.

getMonth() returns is incorrect?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • getMonth() returns is incorrect?

    Look at this piece of code:

    var d = new Date();
    trace( d );
    trace( "Today's date:" + d.getFullYear()+"/"+d.getMonth()+"/"+d.getDate());

    And the output:

    Tue Apr 08 10:56:03 GMT-0400 (Eastern Daylight Time) 2003
    Today's date:2003/3/8

    Apr = 3?

  • #2
    bhf

    getMonth() – Returns the month of the date object according to local time.
    getMonth() returns a value between 0 and 11. 0 being January. 11 being December.

    (the above is from the EFS Help Files courtesy of Chris Kryza and available at the following link
    http://share.esignal.com/groupconten...le&groupid=114)

    Alex

    Comment


    • #3
      Well... thx.

      Comment

      Working...
      X