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

new Date function is not working

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Works as Designed
    • Affects Version/s: 3.2.0-rc2
    • Fix Version/s: None
    • Component/s: Shell
    • Labels:
      None
    • Backwards Compatibility:
      Minor Change
    • Operating System:
      ALL
    • Steps To Reproduce:
      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")

      Description

      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") .

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: