What is a date difference?
A date difference is the number of calendar days between two date-only values (YYYY-MM-DD), ignoring time-of-day.
Most "date difference" tools work with date-only values: a start date and an end date. The result is measured in days, and optionally converted to larger units like weeks, months, or years.
To stay consistent across time zones and daylight-saving transitions, treat inputs as pure dates (not timestamps) and compute the difference in whole days.
This guide covers calendar days; for business days (excluding weekends/holidays), see the business days section below.
- Start: 2026-01-10
- End: 2026-01-20
- Difference (exclusive): 10 days
- Difference (inclusive): 11 days
Try it: Date Difference
For "date-only" math, compute whole days between YYYY-MM-DD values (not local timestamps).
Inclusive vs exclusive counting
Inclusive counting includes the end date (and sometimes the start date) in the total - useful for "number of days in a period".
**Exclusive counting** answers: "How many days do I move forward from the start date to reach the end date?" This is the default for many calculators.
**Inclusive counting** answers: "How many dates are in the range?" If you include the end date, you add 1 to the exclusive count.
Example: Jan 1 to Jan 1 exclusive = 0 days (no movement), but inclusive = 1 day (one date in the range).
Use inclusive counting when you need "days in a period" (e.g., rental days, event duration). Use exclusive for "days until" or "days between".
- Range: 2026-01-10 to 2026-01-10
- Exclusive: 0 days (no gap)
- Inclusive: 1 day (the date itself)
Try it: Toggle "Include end date"
Use inclusive counting when you are counting "days in a range", not "days to move".
Unit conversions (weeks, months, years)
Days convert exactly to weeks (7 days). Months and years use averages and are approximate.
**Weeks:** Exact conversion - 1 week = 7 days. The calculator shows both whole weeks + remaining days and a decimal total.
**Months:** Approximate - uses 30.4375 days (365.25 / 12). This averages out months of varying lengths.
**Years:** Approximate - uses 365.25 days to account for leap years (one every 4 years adds 0.25 days).
For exact calendar months (e.g., "3 months and 5 days"), use a specialized age/duration calculator that works with calendar boundaries.
- 365 days = 52.14 weeks = 12 months = 1 year
- 90 days = 12.86 weeks = 2.96 months = 0.25 years
Try it: See all units
Weeks are exact (days / 7). Months and years are approximate averages.
Decades and centuries
For large date ranges (10+ or 100+ years), the calculator shows decades and centuries.
**Decades** appear when the difference is 10+ years. Example: 40 years = 4 decades.
**Centuries** appear when the difference is 100+ years. Example: 204 years = 2.04 centuries.
These units are helpful for historical research (e.g., "How many centuries between the Roman Empire and today?") or genealogy.
The conversion is simple: 1 decade = 10 years, 1 century = 100 years, based on the 365.25 days/year average.
- Feb 5, 1822 to Feb 6, 2026
- = 74,425 days
- = 203.77 years
- = 20.38 decades
- = 2.04 centuries
Try it: Enter a historical date
Decades and centuries help contextualize very long time spans.
Calendar days vs business days
Calendar days count every day; business days skip weekends (and optionally holidays).
If you are planning shipping, banking, or office schedules, business days are often the right unit. A 10-day calendar window can contain only 6-8 business days depending on weekends and holidays.
Business-day logic varies by country/company: weekend definitions (Friday-Saturday vs Saturday-Sunday) and holiday calendars differ.
This calculator counts **calendar days** (including weekends). For business days, use a dedicated business days calculator.
Try it: Business Days
Use business days for work schedules; use calendar days for elapsed time.
Common pitfalls to avoid
Avoid these mistakes when calculating date differences.
**Off-by-one errors:** Know whether you need inclusive or exclusive counting. Many disagreements between calculators come from this.
**Timezone confusion:** Mixing timestamps with dates can shift results by a day. Use date-only values (YYYY-MM-DD) to avoid this.
**DST drift:** Daylight Saving Time can make a "day" 23 or 25 hours. Date-only math (fixed UTC noon) avoids this issue.
**Month/year precision:** If you need exactly "3 months," remember that month lengths vary (28-31 days). The average-based conversion is an approximation.
**Leap years:** February 29 exists only in leap years. Year-based calculations account for this via the 365.25 average.
Test edge cases
Use date-only math, decide on inclusive/exclusive counting upfront, and document your assumptions.
Frequently Asked Questions
Why do two date calculators disagree by 1 day?
▾
Why do two date calculators disagree by 1 day?
▾Usually it is inclusive vs exclusive counting (including the end date), or mixing "date-only" values with timestamps/time zones.
Should I include weekends in a date difference?
▾
Should I include weekends in a date difference?
▾For elapsed time, yes (calendar days). For work schedules or banking timelines, use business days instead.
Is the difference negative if the end date is before the start date?
▾
Is the difference negative if the end date is before the start date?
▾Some tools return a signed result (negative when end < start); others return an absolute value. Choose the option that matches your use-case.
How accurate are the month/year conversions?
▾
How accurate are the month/year conversions?
▾They use averages (30.44 days/month, 365.25 days/year). For exact calendar months, use an age calculator that respects month boundaries.
When should I use decades or centuries?
▾
When should I use decades or centuries?
▾For historical research, genealogy, or any context where multi-decade/century spans are meaningful.
Does this calculator handle dates before 1900?
▾
Does this calculator handle dates before 1900?
▾Yes, but be aware of calendar reform (Julian to Gregorian) for very old dates. Most tools assume the proleptic Gregorian calendar.