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

Error Get time difference between two dates in seconds

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

      Calculating seconds between two dates error in mongodb

      db.collection.aggregate({$project:{"dateDifference": { $subtract: [ ISODate("2015-05-30T10:01:58.000Z"),"$date"]}}})
      

            Assignee:
            kelsey.schubert@mongodb.com Kelsey Schubert
            Reporter:
            shibish shibimukesh
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: