This question already has an answer here:
Hi have two dates in date format, how do i get the difference of days between the two ?
Date date1;
Date date2 ;
int numberDays = ?
This question already has an answer here:
Hi have two dates in date format, how do i get the difference of days between the two ?
Date date1;
Date date2 ;
int numberDays = ?
The recommendation is to use JodaTime API for Dates:
http://joda-time.sourceforge.net/
regards.