Posted under Java
Permalink
Tags Calendar, Date, Gotcha, Time, Tip, Tutorial
This is rather a minefield for the unwary, and in general the various APIs in this area come in for a fair share of criticism.
Poor design, leaky abstractions and unhelpful idioms are variously cited.
However, the functionality available is comprehensive even though it can be tricky to use.
The following posts offer good advice in finding your way!
David Jenkov’s Java Date and Time Tutorial – an excellent tutorial with a number of articles on date, time, calendar handling etc.
O’Reilly OnJava.com – Making Sense of Java’s Dates – another very good tutorial
Sun Java Tutorials – Dates and Times – Sun’s Java tutorial on dates & times
Lavnish – Java Calendar vs Date – article on Lavnish’s blog