# NotificationCompat.Metric.FixedDate

Artifact: [androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core) [View Source](https://cs.android.com/search?q=file:androidx/core/app/NotificationCompat.java+class:androidx.core.app.NotificationCompat.Metric.FixedDate) Added in [1.19.1](https://developer.android.com/jetpack/androidx/releases/core#1.19.1)

*** ** * ** ***


```
class NotificationCompat.Metric.FixedDate : NotificationCompat.Metric.MetricValue
```

<br />

|---|---|---|
| [kotlin.Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html) |||
| ↳ | [androidx.core.app.NotificationCompat.Metric.MetricValue](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.MetricValue) ||
|   | ↳ | [androidx.core.app.NotificationCompat.Metric.FixedDate](https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate) |

*** ** * ** ***

A metric value for showing a date.

## Summary

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#FORMAT_AUTOMATIC() = 0` Formatting option. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#FORMAT_LONG_DATE() = 1` Formatting option. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#FORMAT_SHORT_DATE() = 2` Formatting option. |

| ### Public constructors |
|---|
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#FixedDate(java.time.LocalDate)(value: https://developer.android.com/reference/java/time/LocalDate.html)` Creates a `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate` where the `https://developer.android.com/reference/java/time/LocalDate.html` will be displayed with `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#FORMAT_AUTOMATIC()`. |
| `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#FixedDate(java.time.LocalDate,int)(value: https://developer.android.com/reference/java/time/LocalDate.html, format: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Creates a `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate` where the `https://developer.android.com/reference/java/time/LocalDate.html` will be displayed in the specified formatting option. |

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#equals(java.lang.Object)(obj: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html!)` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#getFormat()()` The formatting option for the `https://developer.android.com/reference/java/time/LocalDate.html` value. |
| `https://developer.android.com/reference/java/time/LocalDate.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#getValue()()` The `https://developer.android.com/reference/java/time/LocalDate.html` value. |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#hashCode()()` |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#toString()()` |

## Constants

### FORMAT_AUTOMATIC

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

```
const val FORMAT_AUTOMATIC = 0: Int
```

Formatting option. The system will decide how to format the date, and whether to omit any pieces, depending on available space, the relationship between the `https://developer.android.com/reference/java/time/LocalDate.html` and the current date, etc.

### FORMAT_LONG_DATE

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

```
const val FORMAT_LONG_DATE = 1: Int
```

Formatting option. The date will be shown in a longer format, e.g. "Aug 13 2025" (according to the device's locale).

### FORMAT_SHORT_DATE

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

```
const val FORMAT_SHORT_DATE = 2: Int
```

Formatting option. The date will be shown in a shorter format, e.g. "13/8/25" (according to the device's locale).

## Public constructors

### FixedDate

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

```
FixedDate(value: LocalDate)
```

Creates a `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate` where the `https://developer.android.com/reference/java/time/LocalDate.html` will be displayed with `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate#FORMAT_AUTOMATIC()`.

### FixedDate

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

```
FixedDate(value: LocalDate, format: Int)
```

Creates a `https://developer.android.com/reference/kotlin/androidx/core/app/NotificationCompat.Metric.FixedDate` where the `https://developer.android.com/reference/java/time/LocalDate.html` will be displayed in the specified formatting option.

## Public functions

### equals

```
fun equals(obj: Any!): Boolean
```

### getFormat

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

```
fun getFormat(): Int
```

The formatting option for the `https://developer.android.com/reference/java/time/LocalDate.html` value.

### getValue

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

```
fun getValue(): LocalDate
```

The `https://developer.android.com/reference/java/time/LocalDate.html` value.

### hashCode

```
fun hashCode(): Int
```

### toString

```
fun toString(): String
```