
Hai... What is the purpose of gregorian calendar class?

Java provides the standard calendar by providing the class GregorianCalendar in java.util package. The Gregorian calendar is used in most countries all over the world. The GregorianCalendar class has many important constructors like GregorianCalendar() representing the moment it was created, the GregorianCalendar(int year, int month, int date) representing an arbitrary date, GregorianCalendar(TimeZone zone, Locale aLocale) representing the current time in the given time zone with the given locale etc.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.