Optional
binThe numeric time value, specified as an expression that must resolve to a positive non-zero number. Defaults to 1.
Together, binSize and unit specify the time period used in the $dateTrunc calculation.
The date to truncate, specified in UTC. The date can be any expression that resolves to a Date, a Timestamp, or an ObjectID.
Optional
startUsed when the unit is equal to week. Defaults to Sunday. The startOfWeek parameter is an expression that resolves to a case insensitive string:
Optional
timezone?: tzExpressionThe timezone of the operation result.
The unit of time, specified as an expression that must resolve to one of these strings:
Together, binSize and unit specify the time period used in the $dateTrunc calculation.
Generated using TypeDoc
Truncates a date.