In java.util.Date the function after() == ">"
Is there a way to compare dates as ">=" ?
What about "not before"?
boolean result = !date.before(otherDate)
Also, Joda Time can save you a lot of time :)
Date implements Comparable, so you can use the compareTo method:
if (date.compareTo(otherdate) >= 0) { ... } Basically compareTo is the Java way for comparing objects with >, <= etc. and works in lots of circumstances. The after and before methods of Date probably exist only because they were introduced before compareTo was added.
No ....Java does not support that...instead you can use
Date#equals() and Date#after()
I too also prefer Joda Time