Meaningless Drivel is fun!*
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 Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "How to calculate two date" Watch "How to calculate two date" New topic

How to calculate two date


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 ).
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521
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.

"JavaRanch, where the deer and the Certified play" - David O'Meara
It is sorta covered in the JavaRanch Style Guide.
subject: How to calculate two date
Similar Threads
finding days of two dates in jsp page
difference in days
how to covert string to date object?.
how to get duration starting date to ending date in visual jsf
java method to calculate due date