I am fetching data according to date filter using node.js.
i have values stored in db as "February 12th 2016, 2:02:47 am"
When i am running find command
accounts.find({date:{$gte:'February 11th 2016, 59:59:59'}}).toArray(
function(e, res) {
if (e) callback(e)
else callback(null, res)
});
it returns the exact data i want. but when i runs the command
accounts.find({date:{$gte:'January 1st 2000, 59:59:59'}}).toArray(
function(e, res) {
if (e) callback(e)
else callback(null, res)
});
it returns nothing.
Please help me.
Thanks for your valuable time.