Hí, this mongoDB query, filter documents by date using an idObject field.
db.myCollection.find({_id:{$gt: ObjectId(Math.floor((new Date('1990/10/10'))/1000).toString(16) + "000
0000000000000"), $lt: ObjectId(Math.floor((new Date('2011/10/10'))/1000).toString(16) + "000
0000000000000")}})
How would you implement this using the C# driver? There's already any method to convert a date to idObject?
Reference post: https://stackoverflow.com/a/13594408/2010764