DatePickerHeadline

@Composable
fun DatePickerHeadline(selectedDateMillis: Long?, displayMode: DisplayMode, dateFormatter: DatePickerFormatter, modifier: Modifier = Modifier)

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

Parameters

selectedDateMillis

a timestamp that represents the selected date start of the day in UTC milliseconds from the epoch

displayMode

the current DisplayMode

dateFormatter
modifier

a Modifier to be applied for the headline