Add safety checks in DatePair to guarantee startDate is before endDate