I need to find the number of days between two dates: one is from a report and one is the current date. My snippet:
int age=calculateDiffer
It depends on what you define as the difference. To compare two dates at midnight you can do.
long day1 = ...; // in milliseconds. long day2 = ...; // in milliseconds. long days = (day2 - day1) / 86400000;