java date to calendar

Date to Calendar Java

Sometimes in Java, it is necessary to convert in between Date to Calendar and Calendar to Date classes. Note: It is assumed that you know about the basic concepts of class Date and class GregorianCalendar. It is done in the following code.

Output screen on Date to Calendar conversion Example…