Date & Time

D-day Calculator

Days remaining until a target date.

Left blank, today's date is used.

D-day

D-0

Target weekday-
Weeks (approx.)0 wk
Months (approx.)0 mo
Total days0 days

Enter your target date.

What is D-day?

D-day notation shows how many days remain until, or have passed since, a target date. A future target is shown as D-N, a past one as D+N, and the target date itself as D-DAY. It is widely used for exams, discharge dates, anniversaries, and project deadlines.

How it is calculated

Days = round((target_UTC_midnight − reference_UTC_midnight) / 86400000)

Both dates are normalized to UTC midnight before subtracting, which avoids off-by-one errors caused by daylight saving time or timezone shifts. Enabling "Include start day" adds one day, matching the anniversary-style counting convention where the start day itself counts as day 1.

For reference only: results are based on the standard calendar formula and are provided for general information.
Real-world uses

Count down to an exam, a certification test, or the CSAT to plan your study schedule; track how many days have passed since a wedding or company anniversary; or count down to a military discharge date. The D-day calculator fits any situation where you are waiting for, or commemorating, a specific date.

Two ways to count a D-day

The same date can read as D-100 or D-99 depending on whether the starting day is counted. Neither is wrong; conventions simply differ by context.

Counting the first day, or not

Counting the first day makes the start day one, the convention for anniversaries — so the hundredth day falls 99 days after the start.

Excluding it makes the following day one, which matches statutory periods and the civil-law rule on excluding the first day.

When counting down to a target, the target itself is D-day and the day before is D-1; the target is written D-day rather than D-0.

Where anniversary counts drift

A hundredth day and a first anniversary count different things: one counts days, the other finds the same calendar date next year — so an anniversary is not day 365, and a leap year makes it 366.

A 29 February start has no match in common years; fixing on 28 February or 1 March in advance avoids the annual confusion.

It also helps to settle whether time of day counts — date-only counting ignores it, and apps that track hours can land a day apart.

Legal basis

  • Excluding the first day — Civil Act art. 157
  • Expiry of yearly periods — Civil Act art. 160
What is D-day?
D-day notation shows the number of days remaining until a target date (D-N) or the number of days that have passed since it (D+N). The target date itself is shown as D-DAY.
How is D-day calculated?
The target and reference dates are both normalized to UTC midnight, then their millisecond difference is divided by one day (86,400,000 ms). A future target shows as D-N, a past one as D+N, and today shows as D-DAY.
What is the "include start day" option?
When counting anniversary-style, where the start day counts as day 1, check "include start day" to add one day to the result. Leave it unchecked for exam-style D-days, where the target day itself is not counted.
When is D-100?
D-100 is the date 100 days before the target. For example, if an exam falls on 13 November 2026, then D-100 is 5 August 2026 — 100 days earlier. Enter the target date and the remaining days from today are shown, so you can easily locate the D-100 point.
How are past dates shown?
If the target date is earlier than the reference date, it is shown as D+N for the number of days that have passed. For example, if the target was yesterday it shows D+1, and if it is today it shows D-DAY. This is handy for checking how many days have passed since a wedding anniversary.