Quantcast
Channel: MongoDB : Querying collection within a Date Range - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by bluee for MongoDB : Querying collection within a Date Range

This will work: db.userlogins.find({created_at: {$gte: "2013-05-17 10:31:02.765", $lt: "2013-05-21 10:31:02.765"}});

View Article


MongoDB : Querying collection within a Date Range

I have a collection in my mongodb with records in this format db.userlogins.find().pretty(){"_id" : ObjectId("519bb8c11f30bbf5bcba06f0"),"userId" : "sai","created_at" : "2013-05-16 10:31:02.765"}{"_id"...

View Article
Browsing latest articles
Browse All 2 View Live