A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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:
Calculating Java dates
Working in Java time : Learn the basics of calculating elapsed time in Java
- they do a nice job of explaining Date math in Java.
It is sorta covered in the
JavaRanch Style Guide
display only 2 rows from a recordset size of 10
I have a doubt in oracle!
How get Dates in a particular week Of year
How to get the difference between 2 dates ?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014