Hi @skander_lassoued,
A similar issue was fixed by wrapping the input date into a JavaScript Date Object like this:
But since you mentioned the following already:
In order to better analyze your situation can you provide some sample documents from the profile collection?
Also, can you please provide the startDate
and endDate
values with their actual formats and values by console logging their types using console.log(typeof startDate)
& console.log(typeof endDate)
?
If you have any doubts, please feel free to reach out to us.
Thanks and Regards.
Sourabh Bagrecha,
MongoDB