Countdown Calculator
Count the days, weeks, hours, minutes, and seconds remaining until any target date — or how long it has been if the date is already past.
Days until target
216 days remaining — 7 months, 2 days
- Calendar breakdown
- 7 months, 2 days
- Total weeks
- 30 weeks and 6 days
- Total hours
- 5,184
- Total minutes
- 311,040
- Total seconds
- 18,662,400
- Target day of week
- Friday, 25 December 2026
Days are counted on the proleptic Gregorian calendar in UTC, so DST and timezone offsets never shift the result. The year/month/day breakdown is additive: whole years first, then whole months from the last anniversary, then remaining days.
How to use this calculator
Set the target year, month, and day at the top, then the "from" date you want to count from at the bottom — leave it as today for the standard countdown, or change it to count from any other date. The calculator returns the total days remaining, broken down into years, months, and days, alongside the equivalent in weeks, hours, minutes, and seconds. If the target is already past, the result is given as "days ago" with a negative shift.
How the calculation works
Calendar days are counted on the ISO 8601 proleptic Gregorian calendar, all arithmetic in UTC. This avoids daylight-saving and timezone offsets bumping the count by a day either way. The year/month/day breakdown is additive: count whole years from the start until the next year would overshoot the target, then whole months from that point, then leftover days. The total hours, minutes, and seconds are calculated from the day count using exactly 24 × 60 × 60 = 86,400 seconds per day — no leap seconds, which matches the convention used by all major countdown sites.
Worked example
From 23 May 2026 to 25 December 2026: 8 days from 23 May to 31 May, 30 in June, 31 in July, 31 in August, 30 in September, 31 in October, 30 in November, and 25 in December — 216 days in total. The additive breakdown is 7 months and 2 days (23 May + 7 months = 23 December, + 2 days = 25 December). That is also 30 weeks and 6 days, 5,184 hours, 311,040 minutes, or 18,662,400 seconds. The target falls on a Friday.
Frequently asked questions
How is the countdown actually counted?
Calendar days only, on the proleptic Gregorian calendar in UTC. The calculator converts both dates to days since the Unix epoch (1 January 1970) and subtracts. There are no leap seconds and no DST kinks, so 23 May to 25 December always returns the same answer regardless of which side of the spring or autumn clock-change you ask. Hours, minutes, and seconds are scaled from the day count using 86,400 seconds per day.
What if the target date is in the past?
The calculator returns the absolute number of days with a "days ago" label and a negative total shift in the breakdown. You can use it as a "days since" tool — for example, to count how long ago a project started or how many days have passed since a birthday. The year/month/day breakdown still applies and is calculated symmetrically from the earlier date to the later one, then the sign is flipped on the display.
Why is the answer different from a clock-based countdown?
Clock-based countdowns (the kind that tick down to a midnight launch) include the hours and minutes between "now" and the target instant, so two queries half an hour apart give slightly different days-remaining numbers. This calculator is calendar-based: it counts the number of midnights between the two dates. That is the right tool for planning ("how many days until Christmas?") rather than launch timing ("how many seconds until the rocket launches?").
Does it handle leap years correctly?
Yes. The proleptic Gregorian calendar is used throughout, with the standard rule: divisible by 4 is a leap year, except for century years which must also be divisible by 400. So 2000 and 2024 are leap years; 1900 and 2100 are not. A countdown from 1 January to 31 December returns 364 days in a common year and 365 in a leap year, and the year/month/day breakdown anchors correctly on 29 February inputs (clamping to 28 February in non-leap target years).
How far ahead or behind can I count?
Year inputs go from 1 to 9999 — the full range of ISO 8601 short form. That covers every realistic planning, anniversary, historical, and contract use case. JavaScript Date can in principle reach much further in either direction, but the input cap is set at 9999 to match the four-digit ISO year. If you need years before AD 1 or after AD 9999, a specialised astronomical tool is the better fit.
Why does the breakdown say 7 months and 2 days, not 7 months and 2.0 days?
Because the breakdown is exact — there are no fractional days. The additive convention picks the largest whole years, then whole months, then whole days, with the calendar honouring the actual length of each month. So 23 May + 7 months = 23 December, then + 2 days = 25 December. The same logic gives 1 January + 1 month = 1 February (regardless of whether January has 30 or 31 days), because the month offset anchors on the day-of-month and clamps if the target month is shorter.