I want a help in getting the data for the next 30 days. I have,
db.employee.find(
{
"idExpiryDate":
{
$gte: new Date()
}
}
).sort({ "idExpiryDate": 1 })
In this I get all the idExpiryDate after today, but I want only the next 30 days data. Anyone can help?