Countdown to a date
Enter a current instant and a target date (YYYY-MM-DD, optional HH:mm) to get the remaining days, hours, minutes and seconds, the total seconds, the weekday of the target date and a per-day or per-hour preview. You supply the current instant; the system clock is never read.
Runs in your browserEvery computation happens in your browser — your data never leaves this device.
Countdown result
A date without a time part means 00:00:00. The weekday belongs to the target calendar date and does not depend on the time zone basis. Business days count only the full weekdays between the two calendar days, excluding both endpoints.
remaining: 47d 00:00:00 (4060800s) target: 2026-02-17 00:00:00 UTC (Tuesday) status: upcoming weeks: 6w 5d
Weekday: Tuesday (2026-02-17)
2026-01-01 00:00:00 UTC2026-02-17 00:00:00 UTC47d 0h 0min 0s4060800Upcoming6w 5dRemaining seconds: 4060800 · Remaining days: 47 · Preview segments: 7 · Business days: 0
Segmented preview
Each line shows offset from now | projected instant | remaining amount at that instant.
+1d | 2026-01-02 00:00:00 | 46d 00:00:00 +2d | 2026-01-03 00:00:00 | 45d 00:00:00 +3d | 2026-01-04 00:00:00 | 44d 00:00:00 +4d | 2026-01-05 00:00:00 | 43d 00:00:00 +5d | 2026-01-06 00:00:00 | 42d 00:00:00 +6d | 2026-01-07 00:00:00 | 41d 00:00:00 +7d | 2026-01-08 00:00:00 | 40d 00:00:00
What this tool does
- See how many days and hours are left before a date such as a birthday, exam, due date or anniversary, together with the weekday of that date.
- Preview the remaining amount step by step per day or per hour for reminder copy and scheduling.
- A date without a time part counts from 00:00:00 that day; the current instant is yours to enter, the system clock is never read and results are reproducible.
Example
Input
Current instant: 2026-01-01T00:00:00 Target date: 2026-02-17 Time zone basis: UTC (default) Preview: per day, 7 segments
Output
remaining: 47d 00:00:00 (4060800s) target: 2026-02-17 00:00:00 UTC (Tuesday) status: upcoming weeks: 6w 5d
2026-02-17 is Chinese New Year 2026 and happens to be a Tuesday. The last line of the default 7-segment daily preview is `+7d | 2026-01-08 00:00:00 | 40d 00:00:00`.
Frequently asked questions
How is this different from "Countdown to a time"?
The target here is a date (YYYY-MM-DD) with an optional HH:mm, the tool also states the weekday of that date, and the preview defaults to seven daily segments — the right shape for "how many days until" questions. Use the time countdown when you need second-precision on both sides.
How is the weekday determined?
It is the weekday of the target calendar date (0 = Sunday) and is the same in every time zone basis. It comes from fixed Gregorian arithmetic (1970-01-01 was a Thursday) rather than a locale library, so browser locale settings cannot change it.
What if the target date has no time part?
It is treated as 00:00:00 that day. With a current instant of 2026-02-17T09:00:00 and a target date of 2026-02-17 the result is "elapsed 9 hours", not 15 hours remaining.
What is the difference between UTC and local time?
UTC (the default) treats the input as UTC so every device agrees. The local basis parses in the browser time zone and splits calendar days at local midnight; across a daylight-saving switch the second difference can be a multiple of 23 or 25 hours. The weekday and business-day counts are unaffected.
Does it read the system clock or use the network?
Neither. The current instant comes from the input field (2026-01-01T00:00:00 by default), everything is computed locally in your browser and nothing is uploaded, so the same input always produces the same output.
Keywords:Countdown to a datedate countdowndays untildatetime