Beginner

Countdown to a Date

Find out exactly how many days, hours, minutes and seconds remain until any date and time you choose.
Format: YYYY-MM-DDThh:mm
Used for the elapsed progress meter
Days remaining
89

until the target date and time

Countdown
89d 23h 59m 06s
Total days
90
Hours
23
Minutes
59
Seconds
6
Elapsed
0.02%
2026-07-132026-10-11T01:2489d 23h 59mElapsed time from reference start to target
Step by step
  1. 1

    Total milliseconds

    7,775,946,189
    Absolute difference between the target moment and now.
  2. 2

    Whole days remaining

    floor(7,775,946,189 ÷ 86,400,000) = 89
Results are estimates for general information only and are not professional advice — always verify important results independently before relying on them. Read the full disclaimer.
Quick answer

How does this calculator work?

Enter a target date and time, and this tool subtracts the current moment to show the exact days, hours, minutes and seconds remaining. It also reports total days and, with an optional reference start date, an elapsed progress percentage on a visual meter tracking your way to the event.

Formula
diff = target − now; days = floor(diff / 86400000); hours = floor((diff mod 86400000) / 3600000); minutes = floor((diff mod 3600000) / 60000); seconds = floor((diff mod 60000) / 1000)
How this is calculated

Enter the target date and time using the YYYY-MM-DDThh:mm format. The calculator subtracts the current moment from your target to get the total difference in milliseconds, then breaks that span into whole days, hours, minutes and seconds. The hours, minutes and seconds shown are the remainders after the larger units are removed, so they always fall within their natural ranges (0-23 hours, 0-59 minutes, 0-59 seconds).

The optional reference start date sets the beginning of a progress window. The elapsed percentage is computed as (now − referenceStart) / (target − referenceStart), clamped to 0-100%, and is drawn on the RangeMeter so you can see how far along you are between the start and the goal. This is useful for tracking progress toward an event, deadline or launch.

All math is done in the browser using the local time zone. If the target is in the past, the difference becomes negative and the calculator reports the elapsed time since that date instead. The progress meter only appears when a valid reference date earlier than the target is supplied; a reference equal to or after the target yields no meaningful range and is hidden.

Frequently asked questions

Use YYYY-MM-DDThh:mm, for example 2026-12-31T18:30. You can also enter just a date like 2026-12-31, which is treated as midnight local time.

The values are calculated from the current moment each time you change an input. Re-running or re-entering the calculator refreshes the remaining time to the present second.

The calculator detects a negative difference and instead shows how much time has elapsed since that date, labelling it accordingly.

Also known as

countdown to date
days until
time remaining
event countdown
how long until
countdown timer
days left until
date countdown

APA

TG we-Calculate Editorial Team. (2026). Countdown to a Date [Online calculator]. TG we-Calculate. https://we-calculate.com/calculator/countdown-to-date

Chicago

TG we-Calculate Editorial Team. "Countdown to a Date." TG we-Calculate. 2026. https://we-calculate.com/calculator/countdown-to-date.

IEEE

TG we-Calculate Editorial Team, "Countdown to a Date," TG we-Calculate, 2026. [Online]. Available: https://we-calculate.com/calculator/countdown-to-date

BibTeX

@misc{wecalculate_countdown_to_date, title = {Countdown to a Date}, author = {{TG we-Calculate Editorial Team}}, howpublished = {\url{https://we-calculate.com/calculator/countdown-to-date}}, year = {2026}, note = {TG we-Calculate} }

Did this calculator help you?