# SelectableDates

Artifact: [androidx.compose.material3:material3](https://developer.android.com/jetpack/androidx/releases/compose-material3) [View Source](https://cs.android.com/search?q=file:androidx/compose/material3/DatePicker.kt+class:androidx.compose.material3.SelectableDates) Common/AllAndroid/JVM
- Cmn

  ```
  interface SelectableDates
  ```

*** ** * ** ***

An interface that controls the selectable dates and years in the date pickers UI.

## Summary

| ### Public functions |
|---|---|---|
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableDates#isSelectableDate(kotlin.Long)(utcTimeMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)` Returns true if the date item representing the `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableDates#isSelectableDate(kotlin.Long)` should be enabled for selection in the UI. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableDates#isSelectableYear(kotlin.Int)(year: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)` Returns true if a given `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableDates#isSelectableYear(kotlin.Int)` should be enabled for selection in the UI. | Cmn |

## Public functions

### isSelectableDate

Cmn

```
open fun isSelectableDate(utcTimeMillis: Long): Boolean
```

Returns true if the date item representing the `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableDates#isSelectableDate(kotlin.Long)` should be enabled for selection in the UI.

### isSelectableYear

Cmn

```
open fun isSelectableYear(year: Int): Boolean
```

Returns true if a given `https://developer.android.com/reference/kotlin/androidx/compose/material3/SelectableDates#isSelectableYear(kotlin.Int)` should be enabled for selection in the UI. When a year is defined as non selectable, all the dates in that year will also be non selectable.