sangameshrh
asked on
Comparing Dates in JAVA
How to compare to dates of java.util.Date class in JAVA
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
..and of course
long millisecondsDiff = d1.getTime() - d2.getTime();
long millisecondsDiff = d1.getTime() - d2.getTime();
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Forced accept.
Computer101
EE Admin
Computer101
EE Admin
boolean d1IsAfter = d1.after(d2);
boolean d1IsBefore = d1.before(d2);