August 23, 2013 · 1 min read
**Date** and **Time** manipulation is a must in every programming. **Date**, **GregorianCalendar**, **SimpleDateFormat** classes placed in java.util package comes to the rescue for all possible operations on date and time.
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/)**).