Date Difference Calculator
Results:
Enter a start date and an end date.
Days between counts midnights. Inclusive counts both dates.
Count the days between two dates, the inclusive count of both dates, and the calendar span in years, months, and days. The day count is the same if you swap the dates. The calendar span always runs from the earlier date to the later date. The result updates as you change either date. There is no Calculate button. A worked example below uses January 1, 2026 and March 15, 2026. For a birth date, use the age calculator. It uses the same calendar span.
How to use this date difference calculator
- Enter the start date.
- Enter the end date. It can be earlier than the start date.
- Read the result. It recalculates when either date changes. There is no Calculate button.
- Choose Clear to empty both dates and restore the starting message.
Both fields must be real calendar dates. February 29 is accepted only in a leap year. If either date is blank, the result stays on “Enter a start date and an end date.”
Days between is the number of midnights from the earlier date to the later date. January 1 to January 2 is 1 day. Inclusive adds 1, so both endpoints are in the count. January 1 through January 2 is 2 days. The same date is 0 days between and 1 inclusive day. Weeks split the days-between count into weeks and leftover days. 73 days is 10 weeks and 3 days.
The date-difference formula
Days between = later civil date − earlier civil date, counted in whole days.
Inclusive days = days between + 1
The calendar span is the same years, months, and days used on the age calculator:
complete years, then complete months, then the remaining days, from the earlier date to the later date.
That breakdown follows Java Period.between.
A month is not 30 days, so the calendar span and the day count answer different questions.
Worked example
Take January 1, 2026 and March 15, 2026. The result reads:
73 days between (10 weeks and 3 days) | Inclusive: 74 days | Calendar span: 0 years, 2 months, 14 days
- January has 31 days, so January 1 to February 1 is 31 days.
- 2026 is not a leap year, so February 1 to March 1 is 28 days.
- March 1 to March 15 is 14 days. 31 + 28 + 14 = 73 days between.
- Inclusive days = 73 + 1 = 74.
- 73 = 10 × 7 + 3, so the week split is 10 weeks and 3 days.
- January 1 plus 2 months is March 1, plus 14 days is March 15. The calendar span is 0 years, 2 months, 14 days.
Entering March 15 first and January 1 second produces the same line. The span still runs from the earlier date.
On the percentage calculator, choose “X is what percent of Y?” with X = 73 and Y = 365. The result is 73 is 20.00% of 365. That compares the span with a 365-day common year. 2026 has 365 days. The calculator does not apply that percent itself.
Sample results
| Earlier date | Later date | Days between | Inclusive | Calendar span |
|---|---|---|---|---|
| January 1, 2026 | March 15, 2026 | 73 | 74 | 0 years, 2 months, 14 days |
| February 1, 2024 | March 1, 2024 | 29 | 30 | 0 years, 1 month, 0 days |
| November 21, 2026 | November 21, 2026 | 0 | 1 | 0 years, 0 months, 0 days |
| November 21, 2026 | November 22, 2026 | 1 | 2 | 0 years, 0 months, 1 day |
The 2024 row is the leap-day case: one calendar month, and 29 days between. 29 days is 4 weeks and 1 day. The last row is one midnight. Swapping those two dates does not change the row.
What this count leaves out
- Time of day. Both inputs are dates. A span that starts in the evening and ends the next morning is still the whole calendar day between those dates, or 0 days if both times fall on the same date.
- Business days and holidays. Every civil day counts, including weekends.
- A 30-day month. The calendar span uses real month lengths. February 1, 2024 to March 1, 2024 is 1 month and also 29 days.
- An age label. The same calendar span from a birth date is on the age calculator, which rejects an as-of date before the birth date.
Date difference FAQ
How are the days between two dates counted?
Days between is the number of midnights from the earlier date to the later date. January 1, 2026 to March 15, 2026 is 73 days. The result reads 73 days between (10 weeks and 3 days) | Inclusive: 74 days | Calendar span: 0 years, 2 months, 14 days.
What is the inclusive count?
Inclusive days add 1 so both dates are in the count. January 1 through March 15, 2026 is 74 days. The same date is 0 days between and 1 inclusive day.
Why can the calendar span and the day count disagree?
The calendar span counts complete months, and months do not all have the same length. February 1, 2024 to March 1, 2024 is 0 years, 1 month, 0 days, and 29 days between, because 2024 is a leap year.
Does the order of the dates matter?
Not for the numbers. Entering the later date first still measures from the earlier date to the later date. November 22, 2026 to November 21, 2026 is 1 day between.
How do I find what percent of a year the span is?
On the percentage calculator, choose X is what percent of Y? For the worked example, X = 73 and Y = 365. The result is 73 is 20.00% of 365. Use 366 as Y when you want the share of a leap year.
Everyday calculators
- Age calculator: exact years, months, and days.
- Date difference calculator: days between two dates, plus the calendar span.
- GPA calculator: a credit-weighted average on a 4.0 scale.
- Hours worked calculator: time-card shifts, unpaid breaks, and straight-time pay.
- Percentage calculator: a part as a percent of a whole, or a percent of a number.