Hierarchy

  • DateToParts

Properties

Properties

$dateToParts: {
    date: DateExpression;
    iso8601?: boolean;
    timezone?: tzExpression;
}

Returns a document containing the constituent parts of a date.

Type declaration

  • date: DateExpression

    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.

  • Optional iso8601?: boolean

    If set to true, modifies the output document to use ISO week date fields. Defaults to false.

  • 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.

    Version

    3.6

Generated using TypeDoc