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

Querying by date in shell is very confusing

    • Type: Icon: Improvement Improvement
    • Resolution: Duplicate
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 1.2.2
    • Component/s: Shell
    • None

      When you need to query by date you need to do something like this in the console:

      db.trackings.find({'created_at' : {$gte: new Date(Date.UTC(2009,1,01)), $lte: new Date(Date.UTC(2010, 1, 16))}})

      Its a huge pain to the conversion manually it would be nice if there was a API in the shell to do this to for us.

            Assignee:
            eliot Eliot Horowitz (Inactive)
            Reporter:
            vbabiy Vitaly Babiy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: