Date & Time
Days Between Dates Calculator
Calculate the exact number of days, weeks, months, and years between two dates. Toggle weekdays-only and include/exclude the end date. Free, private, works offline.
- Days
- 0
- Weeks
- 0
- Months
- 0.0
- Years
- 0.0
| Item | Value |
|---|---|
| 0 days | 0 |
| 0 weeks | 0 |
| 0.0 months | 0 |
| 0.0 years | 0 |
| Item | Value |
|---|---|
| 0 days | 0 |
| 0 weeks | 0 |
| 0.0 months | 0 |
| 0.0 years | 0 |
How days between dates are calculated
The calculator converts each date to a UTC timestamp (midnight), subtracts the start from the end, and divides by the number of milliseconds in a day (86,400,000). The result is always a whole number of days; partial days are not possible since the inputs are calendar dates without a time component.
The Include end date toggle adds one day to account for both endpoints. For example, from January 1 to January 3: without inclusion = 2 days (Jan 1 to Jan 2); with inclusion = 3 days (Jan 1, Jan 2, Jan 3).
Weekdays only counts Monday through Friday between the two dates, excluding Saturdays and Sundays. It does not exclude public holidays; use the Working Days Calculator for that.
Understanding the units
- Days: exact whole-day count, may be negative if end is before start.
- Weeks: whole weeks only (floor of days ÷ 7). Fractional weeks are not shown.
- Months: approximate, using 30.4375 days per month (365.25 ÷ 12). Rounded to one decimal. For exact months, use a calendar-aware calculation.
- Years: approximate, using 365.25 days per year. Rounded to one decimal.
Common date difference examples
| From | To | Days | Weeks |
|---|---|---|---|
| Jan 1 | Feb 1 (same year) | 31 | 4 |
| Jan 1 | Jul 1 (same year) | 181 | 25 |
| Jan 1 | Jan 1 (next year, non-leap) | 365 | 52 |
| Jan 1 | Jan 1 (next year, leap) | 366 | 52 |
| Monday | Friday (same week, exclusive) | 4 | 0 |
| Monday | Friday (same week, inclusive) | 5 | 0 |
Famous date calculation examples
| Event | Date difference |
|---|---|
| Apollo 11 launch to moon landing | July 16–20, 1969 (4 days, 6 hours) |
| World War II (Europe) | Sept 1, 1939 – May 8, 1945 (2,076 days) |
| Berlin Wall standing | Aug 13, 1961 – Nov 9, 1989 (10,315 days / 28.2 years) |
| Titanic sinking to wreck discovery | April 15, 1912 – Sept 1, 1985 (73 years) |
| Y2K bug scare | Jan 1, 2000 00:00:00 UTC (25+ years ago as of 2025) |
DST caveat
Daylight Saving Time (DST) transitions can cause "23-hour days" or "25-hour days" in local time zones:
- Spring forward (DST start): March 10, 2024, 2:00 AM -> 3:00 AM (skipped 1 hour). The day has only 23 hours.
- Fall back (DST end): Nov 3, 2024, 2:00 AM -> 1:00 AM (repeated 1 hour). The day has 25 hours.
If calculating duration in hours/minutes across DST boundaries, the result may differ by 1 hour from a naive day-count × 24. Use UTC timestamps for precise time differences if DST matters to your use case.
Practical uses
- Age calculator: Date of birth to today = exact age in years, months, days.
- Project planning: Calculate elapsed time between project start and deadline.
- Legal/contract deadlines: Verify whether 30-day notice periods or statute of limitations have passed.
- Historical research: Compute time spans between historical events (e.g., "How long did the Roman Empire last?").
- Relationship milestones: "How many days since we met?" or "How long until our anniversary?"