Template
single collection
multiple collections
mgodatagen
update
indexe
explain
Stage
Database
bson
mgodatagen
[{"key":1,"createdAt":new Date("2022-09-11T15:31:25.083+00:00")}]
Query
db.collection.aggregate([{"$match":{"$expr":{"$regexMatch":{"input":{"$toString":"$createdAt"},"regex":"09-11"}}}}])
Result