How the countdown works
The countdown timer takes your target date and subtracts the current time from it. The difference is broken into days, hours, minutes and seconds, and the display updates every second in your browser, using your device's clock. The seconds tick down live, and the page never needs a refresh.
Because the calculation runs on your device, it always uses your local time zone. A target of midnight on 1 January 2027 means midnight in your time zone, wherever you are.
Worked example
At midday on 21 November 2026, New Year 2027 is 40 days 12 hours away. That is the same as 972 hours, 58,320 minutes or 3,499,200 seconds. The totals under the countdown show all of these at once, so you can see the wait in whichever unit makes the most sense to you.
Popular countdowns
| Event | Date | Days away (from 21 Nov 2026) |
|---|---|---|
| Christmas 2026 | 25 December 2026 | 33 days 12 hours |
| New Year 2027 | 1 January 2027 | 40 days 12 hours |
| Valentine's Day 2027 | 14 February 2027 | 84 days 12 hours |
| Eid al-Fitr 2027* | 20 March 2027 | 118 days 12 hours |
* Eid al-Fitr depends on the sighting of the moon, so 20 March 2027 is the astronomical estimate, not a confirmed date.
Why the seconds tick
The page uses setInterval to recalculate the difference every 1,000 milliseconds. Each tick re-reads the current time, so the countdown stays accurate even if you leave the tab open for hours. The totals, the weeks figure and the progress bar all move with it.
Frequently Asked Questions
How many days until Christmas 2026?
From midday on 21 November 2026, Christmas 2026 is 33 days 12 hours away. Enter 25 December 2026 as the target date and the timer shows the exact days, hours, minutes and seconds remaining.
How many days until New Year 2027?
From midday on 21 November 2026, New Year 2027 is 40 days 12 hours away — 972 hours, or 58,320 minutes. The default target on this page is already set to 1 January 2027, so you can see it right away.
Does the countdown use my time zone?
Yes. The timer runs in your browser and uses your device's local time, so midnight on your target date means midnight in your time zone.
Can I count down to a past date?
Yes. If the target date has already passed, the timer says so and shows how long ago it was, using the same days, hours, minutes and seconds breakdown.
What is the progress bar?
The progress bar shows how much of the time between your start date and your target date has already passed. Set a start date — for example, 1 January 2026 — and the bar fills as the target approaches.
Is Eid al-Fitr 2027 exact?
No. Islamic dates depend on the sighting of the moon, so 20 March 2027 is the astronomical estimate for Eid al-Fitr 2027. The actual date is confirmed closer to the time.