This week's book giveaways are in the Java EE and JavaScript forums.
We're giving away four copies each of The Java EE 7 Tutorial Volume 1 or Volume 2(winners choice) and jQuery UI in Action and have the authors on-line!
See this thread and this one for details.
The moose likes Java in General and the fly likes How to calculate two date Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to calculate two date" Watch "How to calculate two date" New topic
Author

How to calculate two date

howsen
Greenhorn

Joined: Oct 10, 2002
Posts: 1
May I know how to calculate two date to calculate the difference of two day?
Jamie Robertson
Ranch Hand

Joined: Jul 09, 2001
Posts: 1879


you can adjust the code to allow decimals, rounding or different time units( days, hours, etc ).
Jamie
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
howsen,
Please change your name to be compliant with JavaRanch's naming policy.
Your displayed name should be 2 separate names with more than 1 letter each. We really would prefer that you use your REAL name.
You can change your name: here.
Thanks,
Cindy


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
Consider Paul's rocket mass heater.
 
subject: How to calculate two date