var today = new Date();var yesterday = new Date();yesterday.setDate(today.getDate() - 1);db.databaseName.find({ insDate:{$gte:yesterday}});