Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
N/A
Description
/**
- <p>
- Null-safe date comparison.
- Returnes the most recent date if date1 and date2 is non-null.
- If one of the dates are null, the non-null will be returned.
- If both are null, null will be returned.
- </p>
- @param date1
- @param date2
- @return
*/
public static Date mostRecent( Date date1, Date date2 )
/**
- <p>
- Null-safe date comparison.
- Returnes the least recent (oldest) date if date1 and date2 is non-null.
- If one of the dates are null, the non-null will be returned.
- If both are null, null will be returned.
- </p>
- @param date1
- @param date2
- @return
*/
public static Date leastRecent( Date date1, Date date2 )