How to calculate the number of days between two dates
Short answer
Subtract the earlier calendar date from the later one to get the number of days, then divide by 7 for full weeks and a remainder. Decide whether to count both endpoints (inclusive) or just the gap (exclusive) — the choice changes the result by one day.
Days between two dates
The difference between two dates is the count of calendar days from the start date to the end date. Working in whole calendar days keeps the result stable across time zones and daylight saving changes, because there is no time-of-day component to drift.
Calculate the difference
- Enter the start datePick the earlier calendar date.
- Enter the end datePick the later date. It must be on or after the start date.
- Read the resultSee total days, full weeks, and the remaining days after those weeks.
Weeks and remaining days
- Total days divided by 7 gives the number of full weeks
- The remainder is the leftover days after those whole weeks
- Example: 20 days is 2 full weeks and 6 remaining days
- Leap years are handled automatically — 29 February is a real calendar day