Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2439

MongoCursor returns the date variable as integer value

    • Type: Icon: Bug Bug
    • Resolution: Works as Designed
    • Priority: Icon: Blocker - P1 Blocker - P1
    • None
    • Affects Version/s: None
    • Component/s: None
    • None

      While Querying using MongoCursor the date field returned as integer variable. But when i use dbobject it seems to be return as perfect.

      MongoDB:

      When I query using the MongoCursor

      {"date" : { "$date" : 1468476847025 }}
      

      When I query using the DBCursor

      {"date" : { "$date" : "2016-07-23T15:02:12.728Z" }}
      

      The method getDB(String) from the type Mongo is deprecated

        1. Capture.PNG
          2 kB
          Vinoth Kumar

            Assignee:
            ross@mongodb.com Ross Lawley
            Reporter:
            vinothkumarsubbu Vinoth Kumar
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: