This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
Ulf Dittmer wrote:Then you can work with the Date methods to calculate the difference in days.
I think you mean Calendar methods. Date only has a number of milliseconds since Janyary 1st 1970. Because of nasty things like daylight savings time there are days with 23 or 25 hours so simple calculation does not apply.
Fortunately this question has been asked and answered several times before so a search should provide enough help.