Type: New Feature
Resolution: Won't Fix
Affects Version/s: 2.3
Fix Version/s: None
The JDK contains Date.before() and Date.after() but no time-insensitive versions exist. I am typically in the situation where TIMESTAMP columns are converted into Date instances and I need to compare dates only for business rules.
I propose to complement DateUtils.isSameDay:
My private implementations convert Date to Calendar, zero-out the time elements, and then compare.
PS: I would also deprecate isSameXXX methods in 2.4 and rename it to isEqualXXX since sameness usually implies instance equality, rather than object equality.