compareTo()
first part of DateRange class