current data java

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…

Date Java

Date Java used in routine coding to store dates in a DS at runtime or writing to a database like employees joining dates or birth dates or to manipulate dates. To do the job, Date class comes with many methods and fields. Many methods of Date class are deprecated. Designers…