This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
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: 1138

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,
Have you checked out Aspose?
subject: Trouble understanding dates in Java
It's not a secret anymore!