Dates
Date difference calculator
How many days from one date to another? Put both below. The default counts the gap between the dates; switch on "count both end days" if you are counting the length of a trip, a contract or a rental period.
Exclusive or inclusive: pick one before you sign
From 1 January to 31 December 2026 is 364 days exclusive and 365 days inclusive. Both answers are correct; they answer different questions. A hotel stay checking in on the 1st and out on the 31st is 30 nights, which is exclusive counting. A project that "runs from 1 January to 31 December" is 365 days, which is inclusive. Most off-by-one errors in contracts, deadlines and timesheets are exactly this choice, made implicitly by whoever wrote the sentence.
How the count is done
Both dates are converted to UTC midnight and subtracted, giving a whole number of 86400-second days. That avoids the classic bug where local time crosses a daylight-saving boundary and a one-day gap becomes 23 or 25 hours, which the naive division then rounds the wrong way. Weekdays are counted by walking the range one day at a time and testing whether the day is Monday to Friday.
Leap years are handled by the calendar itself rather than by a constant: February 2024 has 29 days and February 2023 has 28, so the same 1 February to 1 March range gives 29 days in one year and 28 in the other. Rules for century years (divisible by 100 but not 400) are applied automatically.
Business days versus weekdays
"Weekdays" here means Monday to Friday. It is not the same as business days, which also exclude public holidays — and those vary: a bank holiday in one country is a working day in another, and Easter moves every year. For a settlement deadline or a shipping promise, subtract the holidays your counterparty observes as well. The calculator deliberately does not guess at a holiday calendar.
If the end date comes first
The result is negative and the page says so, rather than silently swapping the dates. Negative values are useful when you are reading a table backwards, but they are usually a typo. The detail is in the guide to counting days, including the reason "net 30" rarely means what people assume.
Worked examples
| Range | Days (exclusive) | Days (inclusive) | Weekdays (exclusive) |
|---|---|---|---|
| 2026-01-01 → 2026-12-31 | 364 | 365 | 260 |
| 2026-11-19 → 2026-12-25 | 36 | 37 | 26 |
| 2024-02-01 → 2024-03-01 | 29 | 30 | 21 |
| 2023-02-01 → 2023-03-01 | 28 | 29 | 20 |
Weekdays are Monday to Friday. Public holidays are not subtracted, because they differ by country and by year.
Related calculators
Estimates only, not financial advice. These figures come from the inputs you typed and the assumptions listed above; they ignore fees, taxes and local rules unless stated otherwise. Check important numbers against your lender, utility or adviser before you act on them.