Querying by date in shell is very confusing

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: 1.2.2
    • Component/s: Shell
    • None
    • None
    • None
    • None
    • None
    • None
    • None
    • 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 Horowitz (Inactive)
            Reporter:
            Vitaly Babiy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: