I have a mongo database set up. creating a new date object in mongoDb create a date object in ISO format eg: ISODate(\"2012-07-14T00:00:00Z\")
ISODate(\"2012-07-14T00:00:00Z\")
I am usi
try below:
var temp_datetime_obj = new Date(); collection.find({ start_date:{ $gte: new Date(temp_datetime_obj.toISOString()) } }).toArray(function(err, items) { /* you can console.log here */ });