datePickerConstraints

fun datePickerConstraints(minDate: LocalDate? = null, maxDate: LocalDate? = null): DatePickerConstraints

Creates inclusive date constraints for a date picker.

Return

A DatePickerConstraints instance with the specified bounds.

Parameters

minDate

The earliest selectable date, inclusive. Pass null to omit the lower bound.

maxDate

The latest selectable date, inclusive. Pass null to omit the upper bound.