Database

[{"updated":ISODate("2023-01-22")},{"updated":ISODate("2023-01-23")}]

Query

db.collection.find({$expr:{$eq:[{$toInt:{$divide:[{$toLong:"$updated"},86400000]}},{$toInt:{$divide:[{$toLong:"$$NOW"},86400000]}}]}})

Result