Days until any date — and the days between any two

Two calculators in one. Get an exact date difference in days, weeks and months with a proper include / exclude end date switch, or set a live ticking countdown to any future moment. Everything runs in your browser: no account, no upload, no waiting.

Detecting your browser’s date format…

Days between two dates

Pick a start and an end date. Both counting conventions are always shown side by side, with the one you selected highlighted — that is where most date arithmetic goes wrong.

Type a date any way you like — 25/12/2026, 25 Dec 2026, December 25, 2026 or 2026-12-25 all work, plus today and tomorrow. Numeric dates are read in the order set by “Date format” above — detected from your browser, and changeable there — and what was read is always echoed out in full underneath the field. Prefer to click? The calendar button opens the native date picker.

How should the end date be counted?

Days until a date of your choice

A live countdown that ticks every second. Add a time of day for something precise, like a flight or an exam; leave it at midnight for a whole-day event.

The target date takes the same typed formats as the calculator above, in the order set by “Date format” near the top of the page — or use the calendar button.

Popular countdowns, always up to date

Each of these pages recalculates its own date every time it loads. There is no year hardcoded anywhere: the moment Christmas Day is over, the Christmas page starts counting to the following one. Rule-based dates such as Thanksgiving (the fourth Thursday in November) and Easter (a full computus calculation) are derived from the rule itself.

How it works

Everything happens on your device

There is no server doing the sums. The page loads about 20 KB of JavaScript, reads your device clock and time zone, and calculates locally. That means results are instant, the site works with the network switched off once loaded, and the dates you type — which are often personal — are never transmitted anywhere.

Inclusive versus exclusive counting

Ask two people how many days there are between 1 January and 3 January and you will get two different answers, and both of them are right. They are answering different questions.

  • Excluding the end date gives 2. This measures elapsed time: the number of midnights between the two dates. It is what you want when you subtract one date from another, when you ask how long is left until something, and when you calculate interest, rent or a notice period.
  • Including the end date gives 3. This counts the days themselves — the 1st, the 2nd and the 3rd. It is what you want for days of annual leave, days physically present in a country, billed hire-car or hospital days, and any rule written as "counting both the first and the last day".

Because choosing the wrong one is the single most common mistake in date arithmetic, this calculator refuses to hide it: both totals are always displayed, and the one matching your selection is outlined and labelled. If the two numbers matter to your decision, you can see the difference without touching the controls.

Why we normalise to local midnight

A naive calculator subtracts two timestamps and divides by 86,400,000 milliseconds. That quietly breaks twice a year. In New York, from 7 March 2026 to 9 March 2026 there are only 47 hours of real time, because the clocks jump forward on the 8th. Divide by 24 and you get 1.958 days, which becomes 1 or 2 depending on how the code happens to round.

This tool never does that. Each date is reduced to a plain year–month–day triple and the difference is measured on the calendar itself, so a range that crosses a daylight-saving change, a leap day or a year boundary always returns a whole number of days. The live countdown uses the same idea: it counts whole calendar days first and only then splits the remainder into hours, minutes and seconds.

How weeks are counted

Weeks are the easy part: the day total divided by seven. We show it two ways — as whole weeks plus leftover days (for example "52 weeks + 1 day") and as a decimal ("52.14 weeks") — because schedules use the first and spreadsheets use the second. The weekday count is Monday to Friday only and takes no account of public holidays, which vary by country and by employer.

How months are counted (our exact rule)

Months are genuinely ambiguous, and any tool that does not tell you its rule is hiding something. Is 31 January to 28 February one month, or 28 days? There is no universally correct answer, so here is ours, applied consistently everywhere on this site:

A month is complete once the same day-number has been reached in a later month. If that day-number does not exist in the target month, the last day of that month completes it. Any days beyond the last complete month are reported separately as leftover days.

In practice:

  • 31 January to 28 February = 1 month, 0 days (February has no 31st, so the 28th completes the month)
  • 31 January to 1 March = 1 month, 1 day
  • 31 January to 27 February = 0 months, 27 days
  • 15 March 2026 to 14 March 2027 = 11 months, 27 days (one day short of a year)
  • 29 February 2024 to 28 February 2025 = 12 months, 0 days

This end-of-month clamping is the convention used by most banking and payroll software, and it has a useful property: the month count never overstates the time that has actually elapsed. Two consequences are worth knowing. First, months are not a fixed number of days, so "3 months" and "90 days" are different lengths of time — if a contract says one, do not silently substitute the other. Second, the month figure always excludes the end date, so flipping the include/exclude switch changes the day total but deliberately leaves the month total alone.

Worked examples

1. A full calendar year: 1 January 2026 to 31 December 2026

Excluding the end date: 364 days. Including it: 365 days. 2026 is not a leap year, so the inclusive figure is the whole year — every square on the calendar. The exclusive figure is one less because you stop the night before New Year's Eve ends.

This is exactly why the two modes exist. "How many days are there in 2026?" is an inclusive question. "How long is it from New Year's Day to New Year's Eve?" is an exclusive one.

2. A hotel booking: check in 4 June, check out 11 June

Exclusive: 7 days. Inclusive: 8 days. The hotel will bill you for 7 nights — the exclusive figure — because the last night you sleep there is the 10th. But you will be away from home for 8 calendar days, which is the number your employer wants for leave, and the number a pet-sitter will quote for. Same booking, two correct answers, and the reason so many travel disputes start with an off-by-one.

3. A 90-day visa or Schengen-style stay

Immigration rules almost always count days of presence inclusively: the day you arrive and the day you leave both count as full days, even if you land at 23:00. So for a trip from 1 April to 29 June, switch to include the end date and you get 90 days — right on the limit. Read it exclusively and you would see 89 and think you had a day in hand that you do not have. Always check the exact wording of the rule you are subject to; this calculator gives you the arithmetic, not the legal interpretation.

4. A range that crosses a daylight-saving change

7 March 2026 to 9 March 2026 in any US time zone contains only 47 hours of real time, because clocks move forward on 8 March. This calculator still reports 2 days exclusive and 3 days inclusive, because it counts calendar days rather than dividing elapsed milliseconds. Spreadsheet formulas that subtract two timestamps, and hand-rolled JavaScript that divides by 86,400,000, are the usual sources of the phantom off-by-one you may have seen elsewhere.

5. A three-month notice period starting 31 January

Enter 31 January 2026 and 30 April 2026. The tool reports 89 days exclusive, and 2 months and 30 days under our clamping rule — because 31 March completes the second month and April has no 31st to complete the third until 30 April is passed. If your contract says "three calendar months", the end date you probably want is 30 April (the clamped anniversary); if it says "90 days", it is 1 May. Two words in a contract, two different last days.

Frequently asked questions

Should I include the end date or not?

Ask yourself whether you are measuring a duration or counting days. Duration ("how long until", "how much interest", "how much notice") excludes the end date. Counting days ("how many days of leave", "how many days was I in the country", "how many days will I be billed for") includes it. If a written rule says "inclusive of the first and last day", or "both days count", choose the inclusive option.

I typed a date — how is it read?

Numeric dates are read in whichever order your browser tells us you expect — day first, month first or year first — detected automatically from your browser's locale settings (not your IP address or country, which are a poor proxy for this and differ constantly for travellers). The “Date format” control near the top of this page shows what was detected and lets you override it with three options: day first, month first, or year first; your choice is remembered in this browser only. So depending on that setting, 03/04/2026 means either 3 April or 4 March, and it is stated plainly next to the control which one is active.

A few readings never depend on this setting, because they are unambiguous on their own: a 4-digit year is always recognised as the year regardless of where it appears, so 2026-12-25 is always 25 December no matter your format setting, and a value over 12 in an ambiguous slot is always read as the day, since it cannot be a month — so 25/12/2026 can only mean 25 December even if your setting is month-first. Whatever you type, the parsed date is echoed underneath the field in full, for example "Thursday, 3 April 2026", so a date read differently from what you intended is obvious immediately rather than silently wrong. You can also type today, tomorrow, or spell the month out (3 April 2026, April 3, 2026) — those are read the same way regardless of the format setting; or skip typing altogether and use the calendar button beside the field.

Does the calculation include today?

If today is your start date, then yes under inclusive counting and no under exclusive counting. The live countdown is always exclusive of the target day itself: it reaches zero at midnight as the day begins, which is why a countdown to Christmas shows "0 days" all through Christmas Day rather than flipping to a negative number.

Why is "3 months" not the same as "90 days"?

Because months have 28, 29, 30 or 31 days. Three months from 1 January is 1 April, which is 90 days in a normal year but 91 in a leap year; three months from 1 June is 1 September, which is 92 days. If a deadline matters, work out which unit the rule actually uses. Our month figure follows the end-of-month clamping rule described in How months are counted, and we show the exact day total alongside it so you can compare the two directly.

How are leap years handled?

Automatically and exactly. Because the calculator walks the real calendar rather than assuming 365-day years, a range covering 29 February 2028 includes that day. A date such as 30 February is rejected as invalid rather than silently rolled forward to 1 or 2 March, which is what naive date parsing does. Counting a whole year from 29 February 2024 lands on 28 February 2025 under our clamping rule.

Does daylight saving time change the answer?

No, and that is deliberate. Days are counted on the calendar, not in milliseconds, so the 23-hour and 25-hour days that DST creates cannot shift the total. The live countdown is affected only in the sense that you should expect the hours field to behave sensibly across a clock change — the day count stays honest either way.

Which time zone is used?

Your device's own time zone, whatever your operating system reports. Every countdown on the site reaches zero at local midnight where you are. If you are coordinating an event across time zones, count to the date in the zone where the event happens, then convert the moment separately — a "days until" figure that mixes zones is ambiguous by nature.

Will the holiday countdowns still work next year?

Yes. That is the whole design. No page on this site stores a specific year for a recurring event. Christmas is computed as "the next 25 December from today", Thanksgiving as "the fourth Thursday in November", Black Friday as the day after Thanksgiving, and Easter with the full anonymous Gregorian computus. The moment an event's day ends the page rolls to the next occurrence — even if you leave the tab open overnight. The only pages that name a year are the ones explicitly about that year, and once the date passes they say so and point you at the evergreen version instead of showing a negative countdown.

Can I count working days only?

The results panel gives you Monday-to-Friday weekdays and weekend days for any range you enter. Bear in mind that it does not know about public holidays, company shutdowns or local observances, all of which vary by country, state and employer. For a contractual "business days" deadline you will usually need to subtract the applicable public holidays yourself.

Is anything I type sent to a server?

No. The tools contain no code that transmits what you enter — there are no form submissions and nothing is uploaded, logged or stored. The dates you type stay in the browser tab and disappear when you close it. The one exception is the day/month/year order chosen in “Date format”, which is saved in this browser's local storage purely so it does not reset itself on your next visit; it is a single letter (which order, not which date) and is never sent anywhere. See the privacy policy for the full picture, including what would change if advertising is added later.

Why does the countdown show days as well as hours?

Because the two are computed differently and both are useful. The day figure is a count of calendar days, which is the number people actually mean when they ask "how many days until". The hours, minutes and seconds are the remainder of the current day. Adding them together gives you the true wall-clock gap, and the day figure on its own matches what you would get by counting squares on a paper calendar.

Use cases and limitations

What people use this for

  • Project and study planning — days remaining to a deadline, and how many of those are actually working days.
  • Contracts and notice — checking when a notice period, warranty, cooling-off window or fixed term actually ends, and whether the wording means days or calendar months.
  • Travel — nights versus days, days of annual leave used, and running totals against day-count limits for visas and residence rules.
  • Personal milestones — age in days, anniversaries, a due date, a sobriety or training streak, days since a move or a new job.
  • Billing and payroll — pro-rata periods, subscription windows, and reconciling a "3 months" figure with the day count someone else produced.
  • Events — a shareable countdown to a wedding, a launch, a holiday or a birthday, plus the ready-made pages for the dates everyone asks about.

Where it stops

  • It is arithmetic, not advice. Legal, immigration, tax and medical deadlines are defined by their own rules about which days count, when a period starts, and what happens when a deadline falls on a weekend or public holiday. Use the numbers here as a check, not as an authority.
  • No public-holiday database. Weekday counts exclude Saturdays and Sundays only.
  • One time zone at a time — your device's. There is no facility for counting a range in a zone other than your own.
  • Gregorian calendar only. Dates before the Gregorian reform of 1582 (and before 1752 in Britain and its colonies, which adopted it later) are computed as though the modern calendar had always been in force. That is the right answer for software, and the wrong one for historians.
  • Easter is the Western date. The computus implemented here is the Gregorian one used by Western churches. Orthodox churches following the Julian calendar usually celebrate on a different Sunday.
  • Thanksgiving and Black Friday are the United States dates. Canadian Thanksgiving falls on the second Monday in October and is not covered here.
  • The month rule is a convention, not a law of nature. Another tool using a different rule may legitimately disagree by a day at month ends. Ours is stated in full above so you can tell when that is happening.