Question: how to calculate date difference in android?
Answer: To count the actual number of days between startDate and endDate , simply do: // Find the sequential day from a date, essentially resetting time to start of the day long startDay = startDate. getTime() / 1000 / 60 / 60 / 24; long endDay = endDate.