java convert date to calendar

Calendar Java

To manipulate dates, Java comes with three classes – Date, Calendar and GregorianCalendar, all from java.util package. Many of Date class methods are deprecated in favor Calendar. But Calendar class is abstract class and more features and methods are given in its subclass GregorianCalendar. Class signature of Calendar class as…