but now the problem is I am not able to get data on the 2018-01-10 date.
Hi Arpit,
What’s the value type stored in the field createdTimestamp?
If the values are in ISODate() then you should be able to retrieve documents where createdTimestamp are between those date range.
but now the problem is I am not able to get data on the 2018-01-10 date.
Could you provide example documents from the student collection containing createdTimestamp fields ?
See also MongoDB Date object
Regards,
Wan.