No ads, no sign-upChecked 2026-08-25

Days Until Calculator

Result

124

Result: 124

Pick a date and the calculator counts the days to it from today. From 25 August 2026 there are 40 days until 4 October 2026, and a date already gone gives a negative number. Without JavaScript the page counts from the day it was built, so check the reference date before you trust the figure.

Worked examples

How it's calculated

days = target date − reference date

  1. StepEnter the date you are counting to.
  2. StepLeave the reference date on today, or set another day to count from.
  3. ResultThe calculator subtracts the two dates — a date already past comes out negative.

What this number means

The calculator subtracts two calendar dates — target minus reference — in whole days and in UTC. The count is half-open: the target day is the boundary, not the last day counted, so tomorrow is 1 and today is 0. The preset target is 1 January 2027 and the reference date stands on today. Counted from 25 August 2026, the day the source was checked, that comes to 129 days; to 4 October 2026 it would be 40, and to 25 December 2026, 122. Both dates first become a running day number from 1 January 1970 UTC, and the difference of two such numbers is the day count itself. What the page does not do: it never restates the span in weeks, months or hours, it does not count the weekend days inside it, and it has no clock, so there is no countdown running to the hour. The limit that matters most is the reference date. Today is only filled in once the script has run, and the number is worth exactly one day — so when you pass the figure on, copy the reference date shown beside it, or the count silently ages. Both fields accept dates from 1 January 1900 to 31 December 2100.

Without JavaScript the page counts from the build date

The page is served as static HTML, so the reference date baked into it is the day of the last build. As soon as the script runs it jumps to today and the count corrects itself.

Today itself is not counted

The calculator subtracts the two dates, so a target one day away gives 1 and a target on the same day gives 0. Add one yourself if your deadline counts both the first and the last day.

A date already gone comes out negative

The sign carries the direction, so −30 means the date was thirty days ago. Counting is otherwise identical.

UTC throughout, in whole calendar days

The time of day never matters and a daylight-saving change never shifts the result. Near midnight your local date can differ from the UTC date by a few hours.

Commonly misread

The number on the page is always counted from today.

Only once the script has run. In the static HTML the reference date is the day of the last build, so check it before you trust the figure.

Today counts as day one of the countdown.

It does not: a target on the same day gives 0 and tomorrow gives 1. Add one yourself when your deadline counts the first and the last day.

A date in the past is an error, or the dates get swapped.

You get a negative number instead, because here the direction is half the question. From 2026-08-25 the date 2020-01-01 gives −2428.

A span across a leap day needs an extra day added by hand.

Both dates become a running day number first, so the leap day is already inside. From 2024-02-28 to 2024-03-01 the answer is 2 days.

Reference table

Target date, reference dateDays
2026-10-04, 2026-08-2540
2026-11-26, 2026-08-2593
2026-12-25, 2026-08-25122
2027-01-01, 2026-08-25129
2027-07-04, 2026-08-25313

Questions

What happens if the date has already passed?

You get a negative number: −30 means the date was thirty days ago. The count itself is the same, only the sign flips.

Why does the page show a different number before it finishes loading?

The page is built once and served as static HTML, so the reference date baked into it is the day of the last build. As soon as the script runs, the reference date jumps to today and the count corrects itself. With JavaScript switched off, set the reference date by hand.

Does today count as one of the days?

No. The calculator subtracts the two dates, so a target one day away gives 1 and a target on the same day gives 0. Add one yourself if your deadline counts both the first and the last day.

Does it handle leap years?

Yes, and without any correction. Both dates become a running day number before they are subtracted, so a leap day counts as an ordinary day. From 28 February to 1 March 2024 the answer is two days.

Which time zone does it use?

UTC, throughout. The calculator works in whole calendar days, so the time of day never matters and a daylight-saving change never shifts the result by a day. Near midnight your local date can differ from the UTC date by a few hours.

What do people count down to?

Holidays, birthdays, weddings, exams, due dates, retirement and project deadlines. Anything with a fixed date works — the calculator does not care what the day means.

Sources and last check

  1. aa.usno.navy.mil

Information, not professional advice.