database.collection("twmsg").find(
{"user":
{"created_at":
{
$gte: new Date("Fri Jul 03 08:15:31 +0000 2014")
}
}
}).toArray(function(err,dt){ console.log(dt);res.json(dt)})}
So this is what I am trying to find anything greater or equal in specific date. But date format is saved as "Fri Jul 03 08:15:31 +0000 2014" in MongoDB. I am actually trying to search this date format "Fri Jul 03 08:15:31 +0000 2014" by using date picker which only has month-date-year.