Converts the current date to a DateRange object with the specified endDate.
endDate
DateRange toRange([DateTime? endDate]) => DateRange(this, endDate);