Days between dates
Two counting conventions are offered, because both are in everyday use and they differ by exactly one day. Pick the one your situation calls for.
Result
- Days
- 30
- Whole weeks
- 4 + 2
- As calendar time
- 0 / 1 / 0
How this is calculated
Each date is converted to a day number on the proleptic Gregorian calendar and subtracted. That makes leap years, month lengths and century rules fall out automatically, with no time zone involved anywhere.
- exclusive
- — the nights between the two dates
- inclusive
- — both endpoints counted as days
- working day
- — any day that is not a Saturday or Sunday
Worked example
From 1 January 2024 to 31 January 2024 is 30 days exclusive — that is, 30 nights — and 31 days inclusive, which is the whole month. Both answers are right for different questions: a hotel charges for 30 nights, while a notice period covering the whole month is 31 days. For a span that crosses February, the leap year matters: 1 February to 1 March is 29 days in 2024 and 28 days in 2023.
How to use it
- Enter both dates. The order does not matter — if you put them the other way round, the tool says so and still gives a positive count.
- Turn on "count both dates" for anything measured in days of entitlement rather than nights elapsed.
- Turn on "exclude weekends" to get a working-day figure alongside the calendar one.
Limitations and assumptions
- Public holidays are not excluded. Holidays vary by country, region and year, and inventing a calendar for them would be wrong far more often than it was right. The working-day figure removes Saturdays and Sundays only.
- The working week is assumed to be Monday to Friday. Where the weekend falls on different days, that figure will not apply.
- Times of day are ignored. These are calendar dates, so no time zone or daylight-saving transition can shift the result.
- The calendar is the proleptic Gregorian one. Dates before 1582 will not match records kept in the Julian calendar.
Questions
Should I count both the first and the last day?
It depends what you are counting. Nights in a hotel, or days of interest accrued, are exclusive: arriving on the 1st and leaving on the 31st is 30 nights. Days of entitlement — notice periods, holiday allowance, hire charges — are usually inclusive, making the same span 31 days.
Why does the answer differ by one from another calculator?
Almost certainly because the other one uses the opposite convention. That is exactly why this tool makes the choice explicit rather than picking one silently.
Are public holidays taken out?
No. They differ by country, by region and by year, and some move annually. Only Saturdays and Sundays are removed from the working-day count; subtract your own holidays from that figure.
Does it handle leap years?
Yes, including the century rule. 1900 was not a leap year and 2000 was, because a century year is only a leap year when it is divisible by 400.
Related calculators
This page has not yet had an editorial review.
