The compare() method returns-1, 0, or 1 indicating if the first date is before, equal to, or later than the second.