Discussion Locked

Explore java.util.Calendar

0 helpful
2 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.
The Jan 6, Java TechMail discusses the java.util.Calendar class. Many applications require the tracking and determination of dates on the calendar. Have you used the java.util.Calendar class in your applications?

2 replies

by avia

Yes, I have used the (abstract) "java.util.Calendar" class and its concrete subclass, "java.util.GregorianCalendar".

You did not mention the multitude of "gotchas" associated with these classes. Fortunately, someone else has:

http://mindprod.com/gotchas.html#GREGORIANCALENDAR

These classes are (in my opinion) _not_ intuitive and are difficult to work with (mainly due to the "gotchas"), and, unfortunately, the only classes available in the core java library for dealing with "calendar" data. However, there are third-party alternatives available:

http://mindprod.com/jglossbigdate.html#BIGDATE

I wouldn't agree with "worth the learning curve" -- it's more a case of "no alternative, like it or lump it!".

Avi.

This discussion is closed to new replies.