This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund 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
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply Bookmark "Trouble understanding dates in Java" Watch "Trouble understanding dates in Java" New topic
Author

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: 1112

Filipe,
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,
Avi.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Trouble understanding dates in Java
 
Similar Threads
Placing Scriptlet in Java Script
Reading date from Oracle based on calendar
How to add Date to 1 more day?
dates, strings, and confusion
compare field date from oracle to NOW ?