Java Utililty Methods Date Compare

List of utility methods to do Date Compare

Description

The list of methods to do Date Compare are organized into topic(s).

Method

Datemin(Date datum1, Date datum2)
min
if (datum1 == null) {
    return datum2;
if (datum2 == null) {
    return datum1;
return datum2.after(datum1) ? datum1 : datum2;
booleansameTimeInOneMinute(Date date1, Date date2)
same Time In One Minute
return Math.abs(getMinuteCa(date1, date2)) <= 1;