# DateTimeFormatterSkeletonOptions.Year

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/DateTimeFormatterSkeletonOptions.kt+class:androidx.core.i18n.DateTimeFormatterSkeletonOptions.Year) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/core#1.0.0)

*** ** * ** ***


```
public final class DateTimeFormatterSkeletonOptions.Year
```

<br />

*** ** * ** ***

Calendar year (numeric).

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Year` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Year#NONE()` Produces no output. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Year` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Year#NUMERIC()` As many digits as needed to show the full value. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Year` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Year#TWO_DIGITS()` The two low-order digits of the year, zero-padded as necessary. |

| ### Public methods |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Year` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Year#fromString(kotlin.String)(@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html value)` |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/core/i18n/DateTimeFormatterSkeletonOptions.Year#getValue()()` |

## Public fields

### NONE

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Year NONE
```

Produces no output.

### NUMERIC

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Year NUMERIC
```

As many digits as needed to show the full value. E.g. "2021" or "2009".

### TWO_DIGITS

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Year TWO_DIGITS
```

The two low-order digits of the year, zero-padded as necessary. E.g. "21" or "09".

## Public methods

### fromString

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

```
public static final @NonNull DateTimeFormatterSkeletonOptions.Year fromString(@NonNull String value)
```

### getValue

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

```
public final @NonNull String getValue()
```