File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Beginning Java and the fly likes Trouble understanding dates in Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Trouble understanding dates in Java" Watch "Trouble understanding dates in Java" New topic

Trouble understanding dates in Java

Philip Pomario
Ranch Hand

Joined: Oct 03, 2003
Posts: 113
I'm not new to Java, though every time I have to manipulate dates I have a hard time through the specification. Any help explaining how the classes Date, Calendar, Gregorian Calendar, SimpleDateFormat (are there others?) inter-connect would be much appreciated.
Chengwei Lee
Ranch Hand

Joined: Apr 02, 2004
Posts: 884
Really, what is it that you don't understand or have problems with? Some specific codes that you're having difficulties in, or a specific situation whereby you can't use the classes to do the work.
That will definitely help us help you

SCJP 1.4 * SCWCD 1.4 * SCBCD 1.3 * SCJA 1.0 * TOGAF 8
Avi Abrami
Ranch Hand

Joined: Oct 11, 2000
Posts: 1141

Assuming you haven't already seen it, perhaps the Gotchas Web page of Roedy Green's Java Glossary will help. Look for the discussion of the "java.util.Date" class.
Good Luck,
I agree. Here's the link:
subject: Trouble understanding dates in Java
jQuery in Action, 3rd edition