Calculate days between two dates
A day difference is an ordinal gap between two Gregorian calendar dates, not elapsed hours. This guide shows the exact counting rule used by the calculator and verifies it with worked examples.
How days, weeks, and months between dates are calculated
Total days are the number of calendar days from the first date to the second, not counting the start date but counting the end date. January 1 to January 31 is 30 days.
Total weeks are total days divided by 7, rounded to two decimal places for display.
If the second date is earlier than the first, you still get the same span; the summary lists the earlier date first.
This tool compares calendar dates only—no hours or minutes. For plain YYYY-MM-DD input, the difference is the same everywhere on the Gregorian calendar.
Date difference examples
- 2026-01-01 → 2026-01-3130 days, about 4.29 weeks, 0 months and 30 days.
- 2024-02-28 → 2024-03-01 (leap year)2 days across February into March.