Month and year not showing correctly

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      > var mydate1 = new Date()
      > var mydate2 = ISODate()
      > mydate1.toString()
      Thu Nov 10 2016 02:45:10 GMT-0500 (EST)
      > mydate2.toString()
      Thu Nov 10 2016 02:45:14 GMT-0500 (EST)
      ----------------------------------------------------------------------------------------------------
      
      > mydate1.getMonth()
      10
      > mydate2.getMonth()
      10
      > mydate1.getYear()
      116
      

      All the values shown above are wrong, Month should be 11 and year should be 2016

            Assignee:
            Kelsey Schubert
            Reporter:
            guru rajan
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: