The DateTimeNameStyle class enumerates constants that control the length of the month names and weekday names that are used when formatting dates. Use these constants for the nameStyle parameter of the DateTimeFormatter getMonthNames() and getWeekDayNames() methods.

The LONG_ABBREVIATION and SHORT_ABBREVIATION may be the same or different depending on the operating system and browser settings.

Variables

@:value(cast 0)@:impl@:enuminlineread onlyFULL:DateTimeNameStyle = 0

Specifies the full form or full name style for month names and weekday names. Examples: Tuesday, November.

@:value(cast 1)@:impl@:enuminlineread onlyLONG_ABBREVIATION:DateTimeNameStyle = 1

Specifies the long abbreviation style for month names and weekday names. Examples: Tues for Tuesday, Nov for November.

@:value(cast 2)@:impl@:enuminlineread onlySHORT_ABBREVIATION:DateTimeNameStyle = 2

Specifies the short abbreviation style for month names and weekday names. Examples: T for Tuesday, N for November.