Count the exact days between two dates, with the gap also shown in weeks and approximate months, including leap years and past dates.
Example
From January 1 to December 25, 2026 is 358 days, about 51.14 weeks or 11.76 months. February 28 to March 1 is 2 days in the leap year 2024 but only 1 day in 2025.
Calculation method
Both dates are read as local calendar days and converted to day numbers in UTC, so the subtraction is not affected by daylight saving time. The day result keeps its sign, while weeks are the absolute number of days divided by 7 and months are the days divided by 30.436875, the average length of a Gregorian month. March 1 to April 1, 2026 is therefore 31 days, 4.43 weeks and about 1.02 months.
Important notes
The result is elapsed days, not a count of both dates: add one when the first and last day both count, so January 1 to December 25, 2026 covers 359 calendar dates. The month figure is an average, not calendar months, so use the day count for deadlines and notice periods. Weekends and public holidays are not skipped.
Elapsed days, not a count of calendar boxes
The result is the number of days that pass between the start date and the end date. From January 1 to December 25, 2026 is 358 days. If you need to count both the first and the last date, such as a festival that runs on both days, add one: that range covers 359 calendar dates. For a count that skips weekends or includes a choice about the end date, use the Business Days Calculator instead.
Leap years and month lengths
February 28 to March 1 is 2 days in 2024 because February 29 exists, but only 1 day in 2025. March 1 to April 1, 2026 is 31 days, or about 4.43 weeks. The month figure divides the days by the average Gregorian month of 30.436875 days, so it is a rough guide: 31 days is displayed as about 1.02 months even though it spans exactly one calendar month. Use the day count whenever an agreement, notice period or deadline is specified in days.
Negative results show direction
If the end date comes before the start date, the day count is negative. September 15 to August 1, 2026 is −45 days, meaning the end date is 45 days earlier. Weeks and months are shown as positive sizes of the gap. This makes the tool useful for checking how long ago something happened as well as how far away a deadline is. Dates are handled as calendar days, so daylight saving time changes do not add or remove an hour.
Worked examples| Input | Result |
|---|
2024-02-28 → 2024-03-01 | 2 d |
2025-02-28 → 2025-03-01 | 1 d |
2026-03-01 → 2026-04-01 | 31 d · 4.43 wk · 1.02 mo |
2026-01-01 → 2026-12-25 | 358 d · 51.14 wk · 11.76 mo |
2026-09-15 → 2026-08-01 | -45 d |
Frequently asked questions
Why is the result negative?
A negative number means the end date is earlier than the start date. September 15 to August 1, 2026 shows −45 days, meaning August 1 is 45 days before September 15. Weeks and months are shown as positive sizes of the gap, so the tool works for dates in the past as well as upcoming deadlines.
Should I add one day to include both dates?
It depends on the question. For how long something lasts from one date to another, use the result as shown. For how many calendar days an event covers when it runs on both the first and the last date, add one: January 1 to December 25, 2026 is 358 days apart but 359 dates.
Why does one calendar month show as 1.02 months?
Months have 28 to 31 days, so the tool divides by the average month of 30.436875 days. March 1 to April 1, 2026 spans one calendar month of 31 days, which is slightly longer than average and appears as about 1.02 months. Rely on the day count when an agreement is written in days.