A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Oct 18, 2006
Jul 20, 2007 10:09:00
I want to get the difference between 2 dates and get it in hours....
How can I do that?
Joined: Jul 16, 2006
Jul 20, 2007 12:01:00
Take a look in the Joda Time API.
"Any fool can write code that a computer can understand. Good programmers write code that humans can understand." (Fowler)
Joined: Dec 17, 2003
Jul 21, 2007 11:10:00
Take a look at these JavaWorld articles:
Working in Java time : Learn the basics of calculating elapsed time in Java
- they do a nice job of explaining Date math in Java.
Have you checked out
How to get the difference between 2 dates ?
I have a doubt in oracle!
How get Dates in a particular week Of year
display only 2 rows from a recordset size of 10
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015