Skip to content
HowManyHours.com

How many hours until…

Countdown

Enter a date and time above

—hours

Calculated in

Embed this countdown on your site

Paste this where you want the countdown. It updates live and links back here.

The hours until a date are the difference between that moment and now, divided by 3,600 seconds. Pick a date and time above and the countdown runs live in your time zone — or any other — with a link you can share and a widget you can embed.

How this is calculated

hours until = (target instant − now) ÷ 3,600 s, where the target instant is the chosen wall-clock time resolved in the chosen time zone

The target is read as a wall-clock time in the selected time zone and converted to an absolute instant; the current time is an absolute instant already. The countdown is the difference between the two, updated every second. Working in absolute time is what makes daylight saving transitions come out right without special cases.

The time zone is part of the shared link, not an assumption about the reader, so a countdown made in New York shows the same hours to someone opening it in Tokyo. A fresh visit defaults to the visitor's own zone.

Once the target passes, the display switches to hours ago rather than showing a negative number.

Last reviewed:

Popular countdowns

Holidays

Moving holidays

Days and times

Embedding a countdown

Every countdown on this site can be embedded. The widget is one script,/embed/countdown.js, about 1.4 KB compressed, with no dependencies. Put a container where you want the countdown and load the script:

<div data-hmh-countdown data-target="2026-12-25T00:00" data-tz="America/New_York" data-label="until Christmas"></div>
<script async src="https://howmanyhours.com/embed/countdown.js"></script>

data-target is the wall-clock time,data-tz the IANA time zone it is in, anddata-label optional text. The widget includes a small link back to this page.

Frequently asked questions

How do I work out how many hours until a date?

Take the target date and time, subtract the current date and time, and divide the difference by 3,600 seconds. This page does that live, in the time zone you choose, and shows days, hours, minutes and seconds alongside the total hours.

Why does the countdown ask for a time zone?

Because "midnight on 25 December" is a different instant in Los Angeles and Lagos. The zone is saved into the link, so anyone you share it with sees the same number of hours you do.

Does it account for daylight saving time?

Yes. The countdown works in absolute time, so an interval that crosses a clock change is an hour shorter or longer than the calendar suggests, and the number here reflects that.

Can I put this countdown on my own website?

Yes. Open "Embed this countdown", copy the snippet, and paste it into your page. It is a single small script that updates live and links back here.

Is my date stored anywhere?

No. The date, label and time zone live only in the page address. Nothing is sent to a server, which is also why you can bookmark or share the link.