DateFormatNameOptions

Settings for the dateFormatNames function.

NameTypeDefaultDescription

lower?

boolean

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

nameType

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

Specifies the form of the names.

standAlone?

boolean

Specifies whether the standalone names should be returned.

type

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

Specifies the type of the names.

In this article

Not finding the help you need?