DateFormatNameOptions

Settings for the dateFormatNames function.

NameTypeDefaultDescription

lower?

boolean

Specifies whether the returned names should be converted to lower case.

nameType

"short" | "narrow" | "abbreviated" | "wide"

Specifies the form of the names.

standAlone?

boolean

Specifies whether the standalone names should be returned.

type

"quarters" | "months" | "days" | "dayPeriods" | "eras"

Specifies the type of the names.

In this article

Not finding the help you need?