Date & Time / Date Difference
Date Difference calculator
Compare two dates and see their elapsed difference in days, weeks, and an estimated months-and-days format.
Formula: Elapsed days = the absolute difference between the two calendar-date ordinals. Weeks = whole groups of 7 days; month breakdown uses an average month length.
Counting method
How this date difference works
The calculator counts elapsed days, excluding the starting date. It handles dates in either order. Months are not all the same length, so the months-and-days value is explicitly an estimate; total days and weeks are exact.
Internally each date becomes a day number on the Gregorian calendar, and the difference is taken between those numbers. That is why leap days, month lengths, and year boundaries all fall out correctly without special cases.
Counting elapsed time is different from counting inclusive days. A holiday from 1 July to 8 July is seven elapsed days but eight days if you count both the first and last day. When a contract, event, or deadline is inclusive, add one to the result shown here.
For other date questions, jump to the Add Days calculator to project a future date, the Business Days calculator to skip weekends, or the Age calculator to express a gap in years and months.
How to use this calculator
- 1Enter the start date. This is the earlier point in time; it is excluded from the elapsed-day count.
- 2Enter the end date. This is the later point; the tool identifies the order automatically if you swap them.
- 3Calculate. The tool converts both dates to calendar day numbers and takes the absolute difference.
- 4Read the day and week totals. Total days and whole weeks are exact; the weeks figure includes a remainder of days.
- 5Treat months as a guide. The months-and-days line uses an average month length, so use total days when precision matters.
How the formula works
1 Jan 2024 → 1 Mar 2024 = 31 (Jan) + 29 (Feb) = 60 days
2024 is a leap year, so February has 29 days. The 60 days break into 8 weeks and 4 days, and the average-month estimate shows about 1 month and 29 days.
Worked date ranges
| Date range | Total days | Weeks and days |
|---|---|---|
| 1 Jan 2024 → 1 Mar 2024 | 60 | 8 weeks, 4 days |
| 1 Jan 2024 → 1 Jan 2025 | 366 | 52 weeks, 2 days |
| 1 Jan 2025 → 1 Jan 2026 | 365 | 52 weeks, 1 day |
| 4 Jul 2025 → 25 Dec 2025 | 174 | 24 weeks, 6 days |
| 15 Mar 2026 → 15 Sep 2026 | 184 | 26 weeks, 2 days |
Common mistakes to avoid
- Forgetting the start day is excluded. If you need an inclusive count, add one day to the total shown.
- Trusting the month estimate for contracts. Months vary from 28 to 31 days; use total days for legal or billing precision.
- Ignoring time zones. This tool works on calendar dates, so a late-night timestamp can shift the day by one.
- Using it for working days. Weekends and holidays are included here; switch to the business days calculator for work schedules.
Keep exploring
In practice
Worked examples
Input
January 1, 2024 to March 1, 2024
Answer
60 days · 8 weeks, 4 days
Input
January 1, 2024 to January 1, 2025
Answer
366 days · 52 weeks, 2 days (leap year)
Input
July 4, 2025 to December 25, 2025
Answer
174 days · 24 weeks, 6 days
Input
March 1, 2024 to January 1, 2024
Answer
60 days · same result in reverse order
Good to know
Frequently asked questions
Keep going