A birthday at midnight
Paste a small example into the tool and change one part at a time.
The heading reads "Time left until Mia's birthday". With the time left at 00:00, the clock runs out the moment March 14 begins on your device.
Pick a date and a time and watch the days, hours, minutes and seconds count down. Give it a name and share it with a link.
Last updated
Time left until January 1, 2027
36 days
Friday, January 1, 2027
Coddy teaches you by writing real code in your browser - interactive lessons, instant feedback, and AI help when you get stuck.
A countdown answers one question: how much time is left until a moment you care about. Pick the day, the month and the year (any date from 1900 to 2100), set a time, and give it a name if you want: a birthday, a trip, an exam. The heading then reads "Time left until" and your name, and the full date with its weekday sits under the number.
The big number is the count of whole days left. The clock under it splits the time into days, hours, minutes and seconds and updates every second. It reads your device's clock and time zone, so 18:30 means 18:30 where you are. When the moment comes, the page says it has arrived.
Everything runs in your browser and nothing is stored on a server. The countdown lives in its link: "Copy a link to this countdown" puts the date, the time and the name in the address, so anyone who opens it sees the same countdown. For holidays, the pages listed under the tool already know the date: Christmas, Halloween, Thanksgiving, New Year, Easter, the first days of spring and summer, Ramadan, Eid al-Fitr and Lunar New Year.
divmod; the Python example below does exactly that.Type what you are counting down to in "What are you counting down to?". The name becomes the heading, for example "Time left until Graduation". You can leave it empty.
Choose the day, the month by name and the year. The date starts on next New Year's Day, so there is a countdown on the page before you change anything.
Leave 00:00 to count to the start of the day, or type the hour and minute of the event, such as 18:30 for a dinner or 09:00 for an exam. The time is read on your own clock.
The days and the clock update every second. Press "Copy a link to this countdown" and paste the link anywhere: it opens the same date, time and name.
How each holiday countdown finds its date, with the dates in 2027 and 2028. The season times are in UTC; your local date can be a day off.
| Event | How the date is set | 2027 | 2028 |
|---|---|---|---|
| Christmas | December 25 every year | Saturday, December 25 | Monday, December 25 |
| Halloween | October 31 every year | Sunday, October 31 | Tuesday, October 31 |
| Thanksgiving (US) | Fourth Thursday of November | Thursday, November 25 | Thursday, November 23 |
| New Year's Day | January 1 every year | Friday, January 1 | Saturday, January 1 |
| Easter (Western) | First Sunday after the church full moon on or after March 21 | Sunday, March 28 | Sunday, April 16 |
| First day of spring (north) | The March equinox | March 20, 20:24 UTC | March 20, 02:17 UTC |
| First day of summer (north) | The June solstice | June 21, 14:10 UTC | June 20, 20:01 UTC |
| Ramadan | 1 Ramadan on the Umm al-Qura calendar | Monday, February 8 | Friday, January 28 |
| Eid al-Fitr | 1 Shawwal on the Umm al-Qura calendar | Tuesday, March 9 | Saturday, February 26 |
| Lunar New Year | First day of the first lunar month, China's time (UTC+8) | Saturday, February 6 | Wednesday, January 26 |
Paste a small example into the tool and change one part at a time.
The heading reads "Time left until Mia's birthday". With the time left at 00:00, the clock runs out the moment March 14 begins on your device.
Copy the original value, run the tool, then compare the result.
The clock counts to 9:00 on June 8, not to midnight, so the days and hours match the time you walk in. Copy the link and your study group sees the same countdown.
Take a value from your own work and use this tool to inspect or prepare it.
The moment is behind you, so the page says "This moment has arrived." A countdown never counts up; to count the days since a date, use the days between dates calculator.
from datetime import datetime
now = datetime(2026, 11, 21, 15, 30)target = datetime(2027, 6, 1, 18, 30)
left = target - nowhours, rest = divmod(left.seconds, 3600)print(left.days, "days", hours, "hours", rest // 60, "minutes")Subtracting two datetimes gives a timedelta. Its days are the whole days left, and divmod splits the remaining seconds into hours and minutes, the way the clock tiles do. It prints 192 days 3 hours 0 minutes.
Pick the day, month and year, then type the time in the Time field. The days and the clock update every second until that moment on your device.
The big number is the whole days left before the moment, the same as the Days tile. Leftover hours stay in the clock and are never rounded up into a day.
Yes. Press "Copy a link to this countdown". The link holds the date, the time and the name, and opens the same countdown for anyone.
Your device's. Someone who opens your link in another time zone counts to the same date and clock time in their zone, so their finish moment can differ from yours.
No. It runs in your browser and nothing is stored on a server. Keep the copied link if you want to come back to it.
The page shows "This moment has arrived." It does not count up afterwards.
Holiday pages count calendar days until the day, while this page counts whole days until the moment. In the afternoon, 5 calendar days before a date, this page reads 4 days and some hours.
To any date up to the year 2100. The year field accepts 1900 to 2100.
Yes. Ten pages count to Christmas, Halloween, US Thanksgiving, New Year, Easter, the first day of spring, the first day of summer, Ramadan, Eid al-Fitr and Lunar New Year, each with its date already set.