Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- db.test2.insert({"_dt": new Date()})
- db.test2.aggregate([{"$match": {"_dt": {"$gt": {"$date": 0}}}}])
- db.test2.aggregate([{"$match": {"_dt": {"$gt": {"$date": "2015-11-26T00:00:00Z"}}}}])
- db.test2.aggregate([{"$match": {"_dt": {"$gt": new Date(0)}}}])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement