ordered
Creates a DateRange from two dates, ordering them if startDate is after endDate.
This is useful when a form, preset, or restored value supplies two dates without a guaranteed start/end order.
fun ordered(startYear: Int, startMonth: Int, startDay: Int, endYear: Int = startYear, endMonth: Int = startMonth, endDay: Int = startDay): DateRange
Creates a DateRange from explicit date parts, ordering the resulting dates if needed.
If a day is greater than the maximum day for its year/month, it is clamped before the dates are ordered.