- Which date are you counting to?
- 20730
- Counting from which day?
- 20690
40
Open with these values124
Result: 124Pick 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.
40
Open with these values122
Open with these values2
Open with these valuesdays = target date − reference date
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.
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.
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.
The sign carries the direction, so −30 means the date was thirty days ago. Counting is otherwise identical.
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.
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.
| Target date, reference date | Days |
|---|---|
| 2026-10-04, 2026-08-25 | 40 |
| 2026-11-26, 2026-08-25 | 93 |
| 2026-12-25, 2026-08-25 | 122 |
| 2027-01-01, 2026-08-25 | 129 |
| 2027-07-04, 2026-08-25 | 313 |
You get a negative number: −30 means the date was thirty days ago. The count itself is the same, only the sign flips.
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.
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.
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.
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.
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.
Information, not professional advice.
Diese Seite gibt es auch auf Deutsch.
Zu Deutsch wechseln