You could project the data field to remove the time and then compare to that, but that would remove any benefits of indexes as you would be checking a calculated value.
My focus is just store only date (yyyy-mm-dd). Unfortunately there is no way to store just date object in mongodb. Even if i store document with Date object with time.
{
"date":ISODate("2022-03-27T20:33:15.551Z")
}
I am really looking to check if any way exists to check if incoming date in query matches the document date. Just date (yyyy-mm-dd) and ignoring time.
I do not want to use range because i am looking for one specific date, my ask is very specific if Date (2023-08-12) if found do something. Any suggestions ?