Home Help Java G Java Gregorialcalendar

Related Tutorials


 
 

Share on Google+Share on Google+

Java Gregorialcalendar

Advertisement
Java provides the standard calendar by providing the class GregorianCalendar in java.util package

Java Gregorialcalendar

     

 


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. It's getTime() method returns a Date object, add(int, int) method calculates dates by adding or subtracting units of time like days, months, or years.

 

Advertisement

If you enjoyed this post then why not add us on Google+? Add us to your Circles



Liked it!  Share this Tutorial


Follow us on Twitter, or add us on Facebook or Google Plus to keep you updated with the recent trends of Java and other open source platforms.

Posted on: November 11, 2009

Related Tutorials

Discuss: Java Gregorialcalendar   View All Comments

Post your Comment


Your Name (*) :
Your Email :
Subject (*):
Your Comment (*):
  Reload Image
 
 
Comments:0
DMCA.com