Uploaded image for project: 'MongoDB Database Tools'
  1. MongoDB Database Tools
  2. TOOLS-1179

The maximum date value exports using a long rather than an ISO-8601 formatted string

    • Type: Icon: Task Task
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 3.2.0, 3.3.0
    • Component/s: mongoexport
    • Labels:
      None

      See the "maxDate" field below, which is set the largest possible date value.

      ~/mongo (master)$ mongo
      MongoDB shell version: 3.2.4
      connecting to: test
      MongoDB Enterprise > db.date.findOne()
      {
      	"_id" : ObjectId("573de532d3a32e6fe2b29cf4"),
      	"maxDate" : ISODate("292278994-08-17T07:12:56.808Z"),
      	"minDate" : ISODate("-292275055-05-16T16:47:03.192Z"),
      	"largeDate" : ISODate("2038-01-19T03:14:08Z"),
      	"smallDate" : ISODate("1901-12-13T20:45:52Z")
      }
      MongoDB Enterprise > exit
      ~/mongo (master)$ /mongodb-3.2.default/bin/mongoexport -d test -c date
      2016-05-19T12:22:51.321-0400	connected to: localhost
      {"_id":{"$oid":"573de532d3a32e6fe2b29cf4"},"maxDate":{"$date":{"$numberLong":"9223372036854775807"}},"minDate":{"$date":"-292275055-05-16T16:47:04.192Z"},"largeDate":{"$date":"2038-01-19T03:14:08.000Z"},"smallDate":{"$date":"1901-12-13T20:45:52.000Z"}}
      

            Assignee:
            backlog-server-platform DO NOT USE - Backlog - Platform Team
            Reporter:
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: