Date() and Datetime (mongosh method) - Database Manual - MongoDB Docs

Use the date method to return a new date. You can specify a date to return or return the current date.