Format Code Now
/

Countdown to a Date

CU-87

Pick a date and time, add a title if you like, and watch the days, hours, minutes and seconds count down. When the moment passes, the page shows how long ago it was.

Runs in your browser. Nothing is uploaded.

Event and date

Time left

No countdown yet. Pick a date and press Start countdown, or press Sample.

How to use it

  1. Type a title, such as Launch day. This is optional.
  2. Pick the date and the time. They are read in your own time zone.
  3. Press Start countdown. The days, hours, minutes and seconds update every second.
  4. Read the weeks and the totals in hours, minutes and seconds under the clock.
  5. Press Share link to copy an address that opens the same countdown for someone else.

How the countdown is worked out

The page turns your date and time into one exact moment using your own time zone. Each reading is the gap between that moment and your device clock right now, worked out fresh every time it draws. It never counts ticks, so the numbers stay right if the tab sleeps or runs in the background. Before the moment, seconds are rounded up; after it, the page shows time since. Days are blocks of 24 hours, so a countdown that crosses a clock change can differ by an hour from a wall calendar.

Sharing and saving

The last countdown is saved in this browser with localStorage, so it is still there when you return. Share link puts the exact moment and the title after the # sign in the address. Browsers do not send that part to a server. The person who opens the link sees the same moment in their own time zone, so a 9 AM start in your zone shows as the matching local time for them. Clear removes the saved countdown from this browser.

Error messages and what to do

MessageWhat it meansFix
Pick a date for the countdown.The date box is empty.Pick a date, then press Start countdown.
Use a year from 1970 to 9999.The year is outside the range the page accepts.Pick a year between 1970 and 9999.

Questions people ask

How many days until a date?

Pick the date and press Start countdown. The days box shows whole days left, and the total hours and total minutes lines give the same gap in smaller units. The count uses 24-hour days from the exact moment you set.

Does the countdown keep running if I close the tab?

The time keeps passing, but the page only shows it while it is open. Reopen the page and it picks up the saved countdown and shows the correct time left. It cannot alert you while closed.

Can I send a countdown to someone else?

Yes. Press Share link and send the address. It carries the exact moment and the title after the # sign, so they see the same countdown, shown in their own time zone, with nothing sent to a server.

What happens when the date passes?

The label changes to Time since, and the same boxes count upward from the moment. The page announces to screen readers once, when the moment is reached, and does not read out every second.

Which time zone does the countdown use?

Your own, as set on your device. Pick the date and time as they read on your clock. If you need a moment in another zone, convert it first with the time zone converter.

Why is the count one hour off on my calendar?

The page counts in blocks of 24 hours. If your clocks change between now and the target, a calendar day can be 23 or 25 hours long, so the day count may differ by an hour from a wall calendar.

About this tool

The countdown reads the clock of your device and uses your own time zone to turn the date and time you pick into one exact moment. Every reading is worked out from that moment and the current time, not by counting ticks, so it stays right when the tab sleeps or the page is in the background. Days are blocks of 24 hours, not calendar days, so a countdown that crosses a clock change can differ by an hour from a wall calendar. Before the moment, seconds are rounded up; after it, the page shows how long ago it was. The last countdown is kept in this browser with localStorage. Share link puts the exact moment and the title after the # in the address, which browsers do not send to a server; whoever opens it sees the same moment in their own time zone. The page does not alert you when the time arrives if it is closed.

Format Code Now: free, no ads, no accounts. Your input stays in your browser.