All Components

DateFormatPart

Details for the date format part.

hour12? boolean

Specifies whether a 12-hour time-set should be used for the formatting.

names? DateFormatNameOptions

Specifies the format names options.

pattern? string

Specifies the pattern of the format part.

type? "era" | "year" | "quarter" | "month" | "day" | "weekday" | "hour" | "minute" | "second" | "dayperiod" | "zone" | "literal"

Specifies the type of the format part.

In this article