Advertisement
Guest User

Untitled

a guest
Sep 27th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. db.test2.insert({"_dt": new Date()})
  2. db.test2.aggregate([{"$match": {"_dt": {"$gt": {"$date": 0}}}}])
  3. db.test2.aggregate([{"$match": {"_dt": {"$gt": {"$date": "2015-11-26T00:00:00Z"}}}}])
  4. db.test2.aggregate([{"$match": {"_dt": {"$gt": new Date(0)}}}])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement