Function

getSelectedDate

Returns a LocalDate representation of the selected date in this DatePickerState, or null in case there is no selection.

getSelectedDate

Source set: JvmAndAndroid
public fun DatePickerState.getSelectedDate(): LocalDate?

Returns a LocalDate representation of the selected date in this DatePickerState, or null in case there is no selection.

Return

The selected LocalDate, or null if there is no selection.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: