Date

Java Compare Date Example

The class java.util.Date provides a lot of methods that can be used to compare two Date objects. They are compareTo(), equals(), before(), after() and getTime(). This article will show you examples of how to use them to compare java Date objects.