目标日倒计时天数

计算距离未来某个重要日子还有几天,或距离过去的日子已过去多少天。

Days until a date

计算原理

  1. “Today” is your browser’s current local date, re-checked continuously; leave the page open past midnight and the count updates by itself.
  2. The count runs from today through the target date, excluding today itself: tomorrow is 1 day, matching how countdowns are read.
  3. A past date is reported honestly as elapsed days since, with the direction labeled instead of hidden.

使用提示

  • The weeks-and-days breakdown splits the same count (e.g. 100 days = 14 weeks 2 days).
  • Changing your device date changes “today” on the next update, which is useful for checking a deadline against a future date.
  • All counting is calendar-based, so daylight saving shifts never affect the result.

常见问题解答

What timezone is “today” in?
Yours. The tool uses your browser’s current local date, matching how you think about “how many days left”. Changing your device date changes the answer on the next update.
Does the count include today?
No: it counts days after today through the target date, so “tomorrow” is 1 day. This matches how countdowns are read, and the rule is documented on the page.
What if the date is in the past?
The tool says so and shows the elapsed days since, rather than hiding a negative number or pretending the event is still ahead.