Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21350

new Date function is not working

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.0-rc2
    • Component/s: Shell
    • Labels:
      None
    • Minor Change
    • ALL
    • Hide

      mongo --nodb

      MongoDB shell version: 3.2.0-rc2
      > new Date('2015-11-01 00:00:00')
      ISODate("0NaN-NaN-NaNTNaN:NaN:NaNZ")

      Show
      mongo --nodb MongoDB shell version: 3.2.0-rc2 > new Date('2015-11-01 00:00:00') ISODate("0NaN-NaN-NaNTNaN:NaN:NaNZ")

      Can't get date value with new Date() function with mongo shell client 3.2.0 rc2.

      MongoDB shell version: 3.2.0-rc2
      > new Date('2015-11-01 00:00:00')
      ISODate("0NaN-NaN-NaNTNaN:NaN:NaNZ")

      Which should return ISODate("2015-10-31T16:00:00Z") .

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            carl.dong@windfindtech.com carl dong
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: