selectDateRange

fun selectDateRange(startDate: LocalDate, endDate: LocalDate)

Programmatically selects startDate and endDate.

Throws


fun selectDateRange(dateRange: DateRange)

Programmatically selects dateRange.


fun selectDateRange(startYear: Int, startMonth: Int, startDay: Int, endYear: Int, endMonth: Int, endDay: Int)

Programmatically selects the range from explicit start and end date parts.

If a day is greater than the maximum day for its year/month, it is clamped to that maximum.

Throws

if the resulting start date is after the resulting end date.


fun selectDateRange(startDate: LocalDate, endDate: LocalDate, items: DatePickerItems)

Programmatically selects the closest date range allowed by items.

This overload accepts unordered startDate and endDate values. Both dates are coerced by items and then ordered before selection.


fun selectDateRange(dateRange: DateRange, items: DatePickerItems)

Programmatically selects the closest date range to dateRange allowed by items.


fun selectDateRange(startYear: Int, startMonth: Int, startDay: Int, endYear: Int, endMonth: Int, endDay: Int, items: DatePickerItems)

Programmatically selects the closest date range to the requested date parts allowed by items.

If a day is greater than the maximum day for its year/month, it is clamped before items coercion. This overload accepts unordered resulting dates and orders them before selection.