CompareDates.java modification