I\'ve been playing around storing tweets inside mongodb, each object looks like this:
{
\"_id\" : ObjectId(\"4c02c58de500fe1be1000005\"),
\"contributors\" :
To clarify. What is important to know is that:
Here is a working snippet of code, where we do a little bit of date manipulation to ensure Mongo (here i am using mongoose module and want results for rows whose date attribute is less than (before) the date given as myDate param) can handle it correctly:
var inputDate = new Date(myDate.toISOString());
MyModel.find({
'date': { $lte: inputDate }
})