The input date for which to return parts. can be any expression that resolves to a Date, a Timestamp, or an ObjectID. For more information on expressions, see Expressions.
Optionaliso8601?: boolean
If set to true, modifies the output document to use ISO week date fields. Defaults to false.
The timezone of the operation result. must be a valid expression that resolves to a string formatted as either an Olson Timezone Identifier or a UTC Offset. If no timezone is provided, the result is displayed in UTC.
Returns a document containing the constituent parts of a date.