Database

[{"updated":"2022-02-23T01:54:21.467Z"},{"updated":ISODate("2022-02-23T01:54:21.467Z")}]

Query

db.collection.aggregate({$project:{dayOfMonth:{$dayOfMonth:{$toDate:"$updated"}}}})

Result