D-day Calculator
Days remaining until a target date.
Left blank, today's date is used.
D-day
D-0
Enter your target date.
Result date
-
Enter a base date and a number of days.
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.
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