I'm trying to find out which objects in a collection were created between two dates, by using their _id
s:
db.landmarks.find( { _id: { $gte: new Date(2014, 9, 1), $lt: new Date(2014, 10, 1), } } )
This query isn't returning results
I'm trying to find out which objects in a collection were created between two dates, by using their _id
s:
db.landmarks.find( { _id: { $gte: new Date(2014, 9, 1), $lt: new Date(2014, 10, 1), } } )
This query isn't returning results