getSelectedDate

Function

Android
@RequiresApi(Build.VERSION_CODES.O)
fun DatePickerState.getSelectedDate(): LocalDate?

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

Returns

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