What This Calculator Does
The Days Between Two Dates Calculator tells you exactly how many calendar days separate one date from another. It is useful for counting down to a deadline, working out the length of a project, calculating an age in days, tracking a notice period, or simply settling a friendly argument about how long ago something happened. The result is a whole number of days that correctly accounts for different month lengths and leap years, so you never have to count on a calendar by hand.
The Two Inputs
You only need to provide two pieces of information:
- Start Date — the earlier (or first) date you want to measure from.
- End Date — the later (or second) date you want to measure to.
Both dates are entered in standard year-month-day (ISO) format, for example 2024-01-15.
The Formula
The calculator parses both entries as calendar dates and computes the difference using a simple, exact rule:
Days Between = End Date − Start Date
Internally it counts the number of full days from the start date up to the end date. The count is exclusive of the start date and inclusive of the end date — in other words, it measures the gap, not the number of dates touched. If the end date is earlier than the start date, the result is negative, which tells you the end date comes before the start date.
Worked Example
Suppose you enter:
- Start Date:
2024-01-01 - End Date:
2024-12-31
The calculator returns 365 days. Because 2024 is a leap year, it includes the extra day on 29 February — counting from 1 January up to 31 December gives 365 days of gap (1 January to 1 January the following year would be 366). This automatic handling of leap years is exactly why a calculator beats manual counting.
Converting Days Into Weeks, Months, and Years
Once you know the number of days between two dates, you can convert that figure into approximate weeks, months, and years. Weeks are exact (1 week = 7 days), but months and years vary in length, so those conversions are approximations. The values below use an average month of about 30.44 days and an average year of 365.25 days (which accounts for leap years).
| Days | Weeks | Months (approx.) | Years (approx.) |
|---|---|---|---|
| 7 | 1 | 0.23 | 0.02 |
| 30 | 4.29 | 0.99 | 0.08 |
| 90 | 12.86 | 2.96 | 0.25 |
| 180 | 25.71 | 5.91 | 0.49 |
| 365 | 52.14 | 11.99 | 1.00 |
| 730 | 104.29 | 23.98 | 2.00 |
Conversion formulas used: \(\text{Weeks} = \dfrac{\text{Days}}{7}\), \(\text{Months} \approx \dfrac{\text{Days}}{30.44}\), and \(\text{Years} \approx \dfrac{\text{Days}}{365.25}\). Because calendar months range from 28 to 31 days and a year can be 365 or 366 days, treat the month and year columns as estimates rather than exact counts.
Common Date Span Examples
The number of days between two dates is calculated as \(\text{Days} = \text{End Date} - \text{Start Date}\). This counts the gap between the two dates and does not include the start date itself. If you want to count both the start and end dates (an inclusive count, common for booking nights or event durations), add 1 to the result.
| Start Date | End Date | Days (exclusive) | Notes |
|---|---|---|---|
| Jan 1, 2023 | Dec 31, 2023 | 364 | Same non-leap year; add 1 (365) to count both endpoints. |
| Jan 1, 2024 | Dec 31, 2024 | 365 | 2024 is a leap year, so the span includes Feb 29. |
| Jan 1, 2023 | Jan 1, 2024 | 365 | Exactly one calendar year (non-leap). |
| Jan 1, 2024 | Jan 1, 2025 | 366 | One calendar year spanning the leap day Feb 29, 2024. |
| Jan 15, 2023 | Feb 15, 2023 | 31 | One month apart; length depends on the month (January has 31 days). |
| Feb 15, 2023 | Mar 15, 2023 | 28 | One month apart; February 2023 has 28 days. |
| Mar 10, 2024 | Mar 10, 2024 | 0 | Same date returns zero days difference. |
As shown, identical-looking spans (such as "one month" or "one year") can yield different day counts depending on which months are crossed and whether a leap year is involved. Always confirm whether you need an inclusive or exclusive count for your purpose.
Frequently Asked Questions
Does the result include both the start and end dates?
No. It counts the number of days between them, so it includes the end date but not the start date. If you want to count both endpoints (for example, total days you stayed somewhere), add 1 to the result.
What happens if I swap the dates?
If your end date is earlier than your start date, you will get a negative number. The size of the number is still correct — just ignore the minus sign, or swap the dates to get a positive value.
Are leap years and varying month lengths handled?
Yes. The calculation works on real calendar dates, so February 29, 30-day months and 31-day months are all counted accurately without any extra effort from you.