# DateRangePickerDefaults

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/DateRangePicker.kt+class:androidx.compose.material3.DateRangePickerDefaults) Common/AllAndroid/JVM
- Cmn

  ```
  object DateRangePickerDefaults
  ```

*** ** * ** ***

Contains default values used by the `https://developer.android.com/reference/kotlin/androidx/compose/material3/DateRangePicker.composable#DateRangePicker(androidx.compose.material3.DateRangePickerState,androidx.compose.ui.Modifier,androidx.compose.material3.DatePickerFormatter,androidx.compose.material3.DatePickerColors,kotlin.Function0,kotlin.Function0,kotlin.Boolean,androidx.compose.ui.focus.FocusRequester)`.

## Summary

| ### Public functions |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/DateRangePickerDefaults#DateRangePickerHeadline(kotlin.Long,kotlin.Long,androidx.compose.material3.DisplayMode,androidx.compose.material3.DatePickerFormatter,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color)( selectedStartDateMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html?, selectedEndDateMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html?, displayMode: https://developer.android.com/reference/kotlin/androidx/compose/material3/DisplayMode, dateFormatter: https://developer.android.com/reference/kotlin/androidx/compose/material3/DatePickerFormatter, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` A default date picker headline composable lambda that displays a default headline text when there is no date selection, and an actual date string when there is. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html` | `@https://developer.android.com/reference/kotlin/androidx/compose/runtime/Composable https://developer.android.com/reference/kotlin/androidx/compose/material3/DateRangePickerDefaults#DateRangePickerTitle(androidx.compose.material3.DisplayMode,androidx.compose.ui.Modifier,androidx.compose.ui.graphics.Color)( displayMode: https://developer.android.com/reference/kotlin/androidx/compose/material3/DisplayMode, modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier, contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color )` A default date range picker title composable. | Cmn |

## Public functions

### DateRangePickerHeadline

Cmn

```
@Composable
fun DateRangePickerHeadline(
    selectedStartDateMillis: Long?,
    selectedEndDateMillis: Long?,
    displayMode: DisplayMode,
    dateFormatter: DatePickerFormatter,
    modifier: Modifier = Modifier,
    contentColor: Color = DatePickerDefaults.colors().headlineContentColor
): Unit
```

A default date picker headline composable lambda that displays a default headline text when there is no date selection, and an actual date string when there is.

| Parameters |
|---|---|
| `selectedStartDateMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html?` | a timestamp that represents the selected start date *start* of the day in *UTC* milliseconds from the epoch |
| `selectedEndDateMillis: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html?` | a timestamp that represents the selected end date *start* of the day in *UTC* milliseconds from the epoch |
| `displayMode: https://developer.android.com/reference/kotlin/androidx/compose/material3/DisplayMode` | the current `https://developer.android.com/reference/kotlin/androidx/compose/material3/DisplayMode` |
| `dateFormatter: https://developer.android.com/reference/kotlin/androidx/compose/material3/DatePickerFormatter` | a `https://developer.android.com/reference/kotlin/androidx/compose/material3/DatePickerFormatter` |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | a `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied for the headline |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = DatePickerDefaults.colors().headlineContentColor` | the content color of this headline |

### DateRangePickerTitle

Cmn

```
@Composable
fun DateRangePickerTitle(
    displayMode: DisplayMode,
    modifier: Modifier = Modifier,
    contentColor: Color = DatePickerDefaults.colors().titleContentColor
): Unit
```

A default date range picker title composable.

| Parameters |
|---|---|
| `displayMode: https://developer.android.com/reference/kotlin/androidx/compose/material3/DisplayMode` | the current `https://developer.android.com/reference/kotlin/androidx/compose/material3/DisplayMode` |
| `modifier: https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier = Modifier` | a `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` to be applied for the title |
| `contentColor: https://developer.android.com/reference/kotlin/androidx/compose/ui/graphics/Color = DatePickerDefaults.colors().titleContentColor` | the content color of this title |