Dates

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jock1up
    New Member
    • Jan 2008
    • 10

    Dates

    I am trying to obtain a date with this code. I came up with August 8 and a friend thinks it is July 8 so I am confused? If I go with the month ending up as 8then couldn't it even be September?


    Now = newDate()
    newMonth = Now.getMonth()
    newDate = Now.getDate()



    I thought that months of the year are 0-11 as getMonth() and days of the week are 1-31 as getDate(). If newMonth = 8 and newDate = 8 then what date should this give?
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    september 8th if I'm calculating right.

    Comment

    Working...