# DateTimeFormatterCommonOptions

Artifact: [androidx.core:core-i18n](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/i18n/DateTimeFormatterCommonOptions.kt+class:androidx.core.i18n.DateTimeFormatterCommonOptions) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

*** ** * ** ***


```
public final class DateTimeFormatterCommonOptions
```

<br />

*** ** * ** ***

Used to support common styles, similar to the ones defined in Closure / Material.

The names here are the same as the ones in ICU4J, as Closure / Material have three different naming conventions, sometimes even internally inconsistent. Will add mapping to the Material Design recommended date / time formats.

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html` |   |

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#ABBR_MONTH_DAY()` Constant for date skeleton with abbreviated month and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#ABBR_MONTH_WEEKDAY_DAY()` Constant for date skeleton with abbreviated month, weekday, and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#HOUR24_MINUTE()` Constant for date skeleton with hour and minute in 24-hour presentation. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#HOUR24_MINUTE_SECOND()` Constant for date skeleton with hour, minute, and second in 24-hour presentation. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#HOUR_MINUTE()` Constant for date skeleton with hour and minute, with the locale's preferred hour format (12 or 24). |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#HOUR_MINUTE_SECOND()` Constant for date skeleton with hour, minute, and second, with the locale's preferred hour format (12 or 24). |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#MINUTE_SECOND()` Constant for date skeleton with minute and second. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#MONTH_DAY()` Constant for date skeleton with long month and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#MONTH_WEEKDAY_DAY()` Constant for date skeleton with month, weekday, and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#NUM_MONTH_DAY()` Constant for date skeleton with numeric month and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#NUM_MONTH_WEEKDAY_DAY()` Constant for date skeleton with numeric month, weekday, and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#YEAR_ABBR_MONTH()` Constant for date skeleton with year and abbreviated month. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#YEAR_ABBR_MONTH_DAY()` Constant for date skeleton with year, abbreviated month, and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#YEAR_ABBR_MONTH_WEEKDAY_DAY()` Constant for date skeleton with year, abbreviated month, weekday, and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#YEAR_MONTH()` Constant for date skeleton with year and month. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#YEAR_MONTH_DAY()` Constant for date skeleton with year, month, and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#YEAR_MONTH_WEEKDAY_DAY()` Constant for date skeleton with year, month, weekday, and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#YEAR_NUM_MONTH()` Constant for date skeleton with year and numeric month. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#YEAR_NUM_MONTH_DAY()` Constant for date skeleton with year, numeric month, and day. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#YEAR_NUM_MONTH_WEEKDAY_DAY()` Constant for date skeleton with year, numeric month, weekday, and day. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterCommonOptions#DateTimeFormatterCommonOptions()()` |

## Public fields

### ABBR_MONTH_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions ABBR_MONTH_DAY
```

Constant for date skeleton with abbreviated month and day. E.g. "Mar 27".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#ABBR_MONTH_DAY` |   |

### ABBR_MONTH_WEEKDAY_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions ABBR_MONTH_WEEKDAY_DAY
```

Constant for date skeleton with abbreviated month, weekday, and day. E.g. "Sat, Mar 27".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#ABBR_MONTH_WEEKDAY_DAY` |   |

### HOUR24_MINUTE

```
public static final @NonNull DateTimeFormatterSkeletonOptions HOUR24_MINUTE
```

Constant for date skeleton with hour and minute in 24-hour presentation. E.g. "19:42". WARNING: Not user friendly (ignores user preferences) and not i18n friendly (ignoring locale customs)

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#HOUR24_MINUTE` |   |

### HOUR24_MINUTE_SECOND

```
public static final @NonNull DateTimeFormatterSkeletonOptions HOUR24_MINUTE_SECOND
```

Constant for date skeleton with hour, minute, and second in 24-hour presentation. E.g. "19:42:57". WARNING: Not user friendly (ignores user preferences) and not i18n friendly (ignoring locale customs)

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#HOUR24_MINUTE_SECOND` |   |

### HOUR_MINUTE

```
public static final @NonNull DateTimeFormatterSkeletonOptions HOUR_MINUTE
```

Constant for date skeleton with hour and minute, with the locale's preferred hour format (12 or 24). E.g. "7:42 PM".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#HOUR_MINUTE` |   |

### HOUR_MINUTE_SECOND

```
public static final @NonNull DateTimeFormatterSkeletonOptions HOUR_MINUTE_SECOND
```

Constant for date skeleton with hour, minute, and second, with the locale's preferred hour format (12 or 24). E.g. "7:42:57 PM".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#HOUR_MINUTE_SECOND` |   |

### MINUTE_SECOND

```
public static final @NonNull DateTimeFormatterSkeletonOptions MINUTE_SECOND
```

Constant for date skeleton with minute and second. E.g. "42:57".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#MINUTE_SECOND` |   |

### MONTH_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions MONTH_DAY
```

Constant for date skeleton with long month and day. E.g. "March 27".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#MONTH_DAY` |   |

### MONTH_WEEKDAY_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions MONTH_WEEKDAY_DAY
```

Constant for date skeleton with month, weekday, and day. E.g. "Saturday, March 27".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#MONTH_WEEKDAY_DAY` |   |

### NUM_MONTH_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions NUM_MONTH_DAY
```

Constant for date skeleton with numeric month and day. E.g. "3/27". WARNING, I18N: this can be confusing for an end user. It is unclear if it is month-day, day-month or even month year.

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#NUM_MONTH_DAY` |   |

### NUM_MONTH_WEEKDAY_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions NUM_MONTH_WEEKDAY_DAY
```

Constant for date skeleton with numeric month, weekday, and day. E.g. "Sat, 3/27". WARNING, I18N: this can be confusing for an end user. It is unclear if it is month-day, day-month or even month year.

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#NUM_MONTH_WEEKDAY_DAY` |   |

### YEAR_ABBR_MONTH

```
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_ABBR_MONTH
```

Constant for date skeleton with year and abbreviated month. E.g. "Mar 2021".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#YEAR_ABBR_MONTH` |   |

### YEAR_ABBR_MONTH_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_ABBR_MONTH_DAY
```

Constant for date skeleton with year, abbreviated month, and day. E.g. "Mar 27, 2021".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#YEAR_ABBR_MONTH_DAY` |   |

### YEAR_ABBR_MONTH_WEEKDAY_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_ABBR_MONTH_WEEKDAY_DAY
```

Constant for date skeleton with year, abbreviated month, weekday, and day. E.g. "Sat, Mar 27, 2021".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#YEAR_ABBR_MONTH_WEEKDAY_DAY` |   |

### YEAR_MONTH

```
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_MONTH
```

Constant for date skeleton with year and month. E.g. "March 2021".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#YEAR_MONTH` |   |

### YEAR_MONTH_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_MONTH_DAY
```

Constant for date skeleton with year, month, and day. E.g. "March 27, 2021".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#YEAR_MONTH_DAY` |   |

### YEAR_MONTH_WEEKDAY_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_MONTH_WEEKDAY_DAY
```

Constant for date skeleton with year, month, weekday, and day. E.g. "Saturday, March 27, 2021".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#YEAR_MONTH_WEEKDAY_DAY` |   |

### YEAR_NUM_MONTH

```
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_NUM_MONTH
```

Constant for date skeleton with year and numeric month. E.g. "3/2021".

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#YEAR_NUM_MONTH` |   |

### YEAR_NUM_MONTH_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_NUM_MONTH_DAY
```

Constant for date skeleton with year, numeric month, and day. E.g. "3/27/2021". WARNING, I18N: this can be confusing for an end user. It is unclear if it is month-day or day-month (think 3/4/2021 vs 4/3/2021.).

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#YEAR_NUM_MONTH_DAY` |   |

### YEAR_NUM_MONTH_WEEKDAY_DAY

```
public static final @NonNull DateTimeFormatterSkeletonOptions YEAR_NUM_MONTH_WEEKDAY_DAY
```

Constant for date skeleton with year, numeric month, weekday, and day. E.g. "Sat, 3/27/2021". WARNING, I18N: this can be confusing for an end user. It is unclear if it is month-day or day-month (think 3/4/2021 vs 4/3/2021.).

| See also |
|---|---|
| `https://developer.android.com/reference/android/icu/text/DateFormat.html#YEAR_NUM_MONTH_WEEKDAY_DAY` |   |

## Public constructors

### DateTimeFormatterCommonOptions

Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

```
public DateTimeFormatterCommonOptions()
```