Days between two dates: the quick answer
Pick any two dates and get the exact day count instantly — plus weeks, a calendar years–months–days breakdown, and weekday vs. weekend splits. Example: Jan 1, 2026 → Oct 11, 2026 = 283 days (40 weeks and 3 days; 0 years, 9 months, 10 days).
Counting is exclusive of the start date (Jan 1 → Jan 2 = 1 day), and both dates are compared at UTC midnight so time zones and daylight saving can’t shift the answer.
A short history of counting days
Humans have been counting days between events since Babylonian astronomers — but doing it right was hard enough that in 1582 Pope Gregory XIII had to delete 10 days (October 4 was followed directly by October 15) to fix the Julian calendar’s drift. Britain’s 1752 switch skipped 11 days and allegedly sparked riots over "stolen" days.
Astronomers sidestepped the whole mess with the Julian day number: a continuous count of days since January 1, 4713 BC, so any interval is a single subtraction. Software later reinvented the trick as the Unix epoch (seconds since Jan 1, 1970). This calculator uses the same idea — convert both dates to absolute day numbers, subtract, done.
How it works: the math
Each date is converted to its UTC-midnight timestamp and divided into whole days. The Y–M–D breakdown then borrows like elementary subtraction:
Day numbers differ by 283 days. Calendar breakdown: Oct 11 minus Jan 1 = 0 years, 9 months, 10 days (Jan 1 + 9 months = Oct 1, + 10 days = Oct 11 ✓). Weeks: 283 = 40 × 7 + 3 → 40 weeks, 3 days.
Example durations
Handy spans worth knowing by heart:
| Duration | What it is |
|---|---|
| 7 days | 1 week |
| 30 days | ~1 month (billing cycles, habits) |
| 90 days | A fiscal quarter |
| 180 days | ~6 months (Schengen 90/180-day window) |
| 266 days | Conception to birth |
| 280 days | Average pregnancy (LMP to birth) |
| 365 days | A common year |
| 366 days | A leap year |
| 1,000 days | ~2 years 9 months |
| 6,570 days | 18 years (adulthood in most countries) |
Durations in everyday life
What those day counts feel like in the real world:
The rhythm of earnings reports and OKRs.
Max 90 days in any 180-day period for visitors.
40 weeks from last menstrual period.
366 when February gets its extra day.
Includes exactly one leap day.
100 years including 25 leap days (1901–2000).
Visual guide: two calendars, one span
The calculator measures the gap between two midnights — here’s the idea:
Figure: the span runs from the start midnight (excluded) to the end midnight (included) — 283 days in this example.
Common mistakes to avoid
Date math has classic off-by-one traps:
- The inclusive/exclusive trap. "Jan 1 to Jan 10" feels like 10 days but counts as 9 exclusive of the start. Hotel nights, ages and loan terms all use exclusive counting — match the convention to the context.
- Forgetting leap years. Any span crossing a Feb 29 gains a day. A "1-year" contract from Feb 2024 is 366 days, not 365 — it matters for interest and deadlines.
- Assuming 30-day months. "3 months from Jan 15" is Apr 15 (90 days), but from Feb 15 it’s May 15 (89 days in a non-leap year). The Y–M–D breakdown handles this; raw day counts don’t.
- Letting time zones sneak in. A date picked at 11 PM in one zone can be "tomorrow" in UTC. This calculator pins both dates to UTC midnight so the count never wobbles.
Pro tips
Get more from the calculator:
- The "Jan 1 → today" chip instantly shows your day-of-year count — handy for yearly goals, streaks and "day N of 365" posts.
- Use the weekday split for planning. The Mon–Fri count is your working-day budget for projects; weekend days are the recovery time around it.
- Share the link, not a screenshot. The URL encodes both dates, so anyone opening it sees the live, always-correct count.
- Read Y–M–D for human spans. "2y 4m 12d" means more in an anniversary or a child’s age than "853 days" — use the breakdown for anything people-shaped.
Printable cheat sheet
Print the example-durations reference table in one click:
Fun facts
- October 1582 lost 10 days. Thursday Oct 4 was followed by Friday Oct 15 to realign the calendar — birthdays and contracts in between simply never happened.
- Unix time started in 1970. Computers count seconds since Jan 1, 1970 — this calculator uses the same trick, just in whole days.
- Feb 29 babies pick a birthday. "Leaplings" legally turn 18 on Feb 28 or Mar 1 depending on jurisdiction — date math with real legal consequences.
- September 1752 riots. When Britain adopted the Gregorian calendar and skipped 11 days, legend says crowds demanded their days back — mostly myth, but the confusion was real.
The complete guide
'How many days between these two dates?' — simple question, surprisingly easy to get wrong.
Frequently asked questions
Is the count inclusive or exclusive?
Exclusive of the start date: Jan 1 → Jan 2 counts as 1 day. This matches how most people mean “ days between” — and how age, pregnancy and loan calculators count. If you need both endpoints counted (e.g. hotel nights vs. days of a course), add 1.
What counts as a business day?
Monday through Friday. Public holidays are not subtracted — they vary by country and region, so the weekday count is the neutral baseline most contracts and project plans use.
How is the years–months–days breakdown computed?
With calendar borrowing, the way you would count on your fingers: full years first, then full months, then leftover days. Because months have different lengths, 60 days can be “2 months” in spring but “1 month 29 days” across February.
Are leap years handled?
Yes — the count uses real calendar dates, so Feb 29 is included whenever the range crosses it. 2024-02-28 → 2024-03-01 is 2 days, while the same dates in 2023 give 1.
Can time zones shift the result?
No. Both dates are compared at UTC midnight, so a date means the same 24-hour block wherever you are — daylight-saving transitions can’t add or remove a day.
What if the end date is before the start date?
The calculator swaps them automatically and shows a note — you always get the positive span between the two dates.
Related tools
Keep exploring — more calculators and converters:
