date java

What is Date, Calendar in Java?

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. Following postings of this same Web site give all the possible operations on Date and Time manipulations. 1. class Date…

Dates Comparison Java

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 and Calendar (its subclass GregorianCalendar). Three programs are given to…