ObjectId.getTimestamp() (mongosh method) - Database Manual - MongoDB Docs

Retrieve the timestamp from an `ObjectId` using the `getTimestamp()` method, returning it as a Date object.