samedi 28 février 2015

find by date in mongoose

I have a doubt, I have save some dates like this, timeStamp: "2014-10-30T15:13:37.199Z", in mongoose.


But I want to make a search like this:



model.find({ timeStamp: { $gte: startDate, $lt: endDate }})


Where startDate and endDate are for example 2014-10-30. Is that possible.


Aucun commentaire:

Enregistrer un commentaire