# FormatStyle

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)

# FormatStyle

```
class FormatStyle
```

|---|---|--------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                  |||
| ↳ | [kotlin.Enum](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-enum/index.html)\<[java.time.format.FormatStyle](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#)\> ||
|   | ↳ | [java.time.format.FormatStyle](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#) |

|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [FormatStyle.FULL](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:FULL),[FormatStyle.LONG](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:LONG),[FormatStyle.MEDIUM](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:MEDIUM),[FormatStyle.SHORT](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:SHORT) |---------------------------------------------------------------------------------------------------------------------|----------------------------------------| | [FormatStyle.FULL](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:FULL)     | Full text style, with the most detail. | | [FormatStyle.LONG](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:LONG)     | Long text style, with lots of detail.  | | [FormatStyle.MEDIUM](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:MEDIUM) | Medium text style, with some detail.   | | [FormatStyle.SHORT](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:SHORT)   | Short text style, typically numeric.   | |

Enumeration of the style of a localized date, time or date-time formatter.

These styles are used when obtaining a date-time style from configuration. See[DateTimeFormatter](https://developer.android.com/reference/kotlin/java/time/format/DateTimeFormatter)and[DateTimeFormatterBuilder](https://developer.android.com/reference/kotlin/java/time/format/DateTimeFormatterBuilder)for usage.

## Summary

|                                                                   Enum values                                                                   ||
|----------------------------------------------------------------------------------------------------------------------------------------------|---|
| [FULL](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:FULL) Full text style, with the most detail.   |
| [LONG](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:LONG) Long text style, with lots of detail.    |
| [MEDIUM](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:MEDIUM) Medium text style, with some detail. |
| [SHORT](https://developer.android.com/reference/kotlin/java/time/format/FormatStyle#ENUM_VALUE:SHORT) Short text style, typically numeric.   |

## Enum values

### FULL

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val FULL : FormatStyle
```

Full text style, with the most detail. For example, the format might be 'Tuesday, April 12, 1952 AD' or '3:30:42pm PST'.  

### LONG

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val LONG : FormatStyle
```

Long text style, with lots of detail. For example, the format might be 'January 12, 1952'.  

### MEDIUM

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val MEDIUM : FormatStyle
```

Medium text style, with some detail. For example, the format might be 'Jan 12, 1952'.  

### SHORT

Added in[API level 26](https://developer.android.com/guide/topics/manifest/uses-sdk-element.html#ApiLevels)  

```
enum val SHORT : FormatStyle
```

Short text style, typically numeric. For example, the format might be '12.13.52' or '3:30pm'.