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.