I need to search for birthday ignoring the time in the date.
For example these documents
{
"birthday" : ISODate("2016-03-02T23:00:00Z")
},
{
"birthday" : ISODate("2016-03-02T13:00:00Z")
}
should be found for the parameter 2016-03-02
.
Right now I'm doing this:
const value = '2016-03-02'
Content.find({ 'birthday': new Date(Date.parse(value)) })