i don't think you could find a comparison method that ignore the milliseconds part of an Date object. On the other hand, you could code it, for example, by providing your own Comparator<Date> that ignore the milliseconds :