DateFormatPart

Details for the date format part.

NameTypeDefaultDescription

hour12?

boolean

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

names?

DateFormatNameOptions

Specifies the format names options.

pattern?

string

Specifies the pattern of the format part.

type?

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

Specifies the type of the format part.

In this article

Not finding the help you need?