Enumerates constants that determine a locale-specific date and time formatting pattern. These constants are used when constructing a DateTimeFormatter object or when calling the DateTimeFormatter.setDateTimeStyles() method.

The CUSTOM constant cannot be used in the DateTimeFormatter constructor or the DateFormatter.setDateTimeStyles() method. This constant is instead set as the timeStyle and dateStyle property as a side effect of calling the DateTimeFormatter.setDateTimePattern() method.

Variables

@:value(cast 0)@:impl@:enuminlineread onlyCUSTOM:DateTimeStyle = 0

Specifies that a custom pattern string is used to specify the date or time style.

@:value(cast 1)@:impl@:enuminlineread onlyLONG:DateTimeStyle = 1

Specifies the long style of a date or time.

@:value(cast 2)@:impl@:enuminlineread onlyMEDIUM:DateTimeStyle = 2

Specifies the medium style of a date or time.

@:value(cast 3)@:impl@:enuminlineread onlyNONE:DateTimeStyle = 3

Specifies that the date or time should not be included in the formatted string.

@:value(cast 4)@:impl@:enuminlineread onlySHORT:DateTimeStyle = 4

Specifies the short style of a date or time.