Date Range
constructor(startDate: LocalDate, endDate: LocalDate)
Parameters
start Date
The first selected date.
end Date
The last selected date.
constructor(startYear: Int, startMonth: Int, startDay: Int, endYear: Int = startYear, endMonth: Int = startMonth, endDay: Int = startDay)
Creates a DateRange with 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.
Parameters
start Year
The range start year. Must be in 1000..9999.
start Month
The range start month. Must be in 1..12.
start Day
The range start day. Must be at least 1.
end Year
The range end year. Must be in 1000..9999.
end Month
The range end month. Must be in 1..12.
end Day
The range end day. Must be at least 1.
Throws
if any date part is outside its supported range, or if the resulting start date is after the resulting end date.