How to correclty calculate days between two days
The standard Java API has no solution to calculate the period between two days, although this is a common request for someone who is doing calendar arithmetic.
Googling around, the are many people who expose their own solutions (see some of them 1, 2, 3, 4). All them suggest getting difference between the two dates, measured in number of milliseconds, and divide by 1000 * 60 * 60 * 24 (that means, the number of milliseconds in a day typical day).
