Tag: Java date compare

Dates Comparison Java

September 27, 2011 · 3 min read
It is many times required in coding to **compare two dates** like one is before the other or after or equals (like dates of joining a job). To manipulate dates, Java comes with mainly two classes from **java.util** package **[Date](http://way2java.com/java-util/class-date/)** and **[Calendar](http://way2java.com/java-util/class-calendar-timezone-and-locale/)** (its subclass **[GregorianCalendar](http://way2java.com/java-util/class-gregoriancalendar/)**).