Hierarchy

  • IsoWeekYear

Properties

Properties

$isoWeekYear: DateExpression | {
    date: DateExpression;
    timezone?: tzExpression;
}

Returns the year number in ISO 8601 format. The year starts with the Monday of week 1 (ISO 8601) and ends with the Sunday of the last week (ISO 8601).

Type declaration

  • date: DateExpression

    The date to which the operator is applied. must be a valid expression that resolves to a Date, a Timestamp, or an ObjectID.

  • Optional timezone?: tzExpression

    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.

Generated using TypeDoc