I previously asked a question that may not have been worded as clearly
as possible and you answered something slightly different from what I
was looking for. I want to know how to subtract one date from another
as in the following pseudo-code:
differenceindays = calender2 - calender1
How can I determine the difference in days between two Calendar dates?
To do this you must convert your Calendar times to Date objects with
Calendar.getTime(). Then convert your Date objects to longs
representing the number of milliseconds since midnight January 1,
1970. Date.getTime() will do this. Now subtract the two times and
divide by the number of milliseconds in a day.