Node.js to MongoDB: find by Date
Problem with find Date from Node to MongoDB: It's been said MongoDB might not be storing a Date object, but a string, but I'm not sure how to check, or how to fix that. In my turnys.js file: exports.findNeededTurnys = function(req, handler) { console.log("findNeededTurnys"); var key; //var arg0 = {$or:[{start:{$lte:new Date()}, $where: "this.users.length == this.seats"}]}; var arg0 = {start:{$lte:new Date()}}; console.log("findNeededTurnys: arg0="+JSON.stringify(arg0)); turnydb.collection('turnys', function(err, collection) { collection.find(arg0, {safe:true}, function(err, result) { if(err)