select Date Range
Programmatically selects startDate and endDate.
Throws
Programmatically selects dateRange.
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.
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.
Programmatically selects the closest date range to dateRange allowed by items.
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.