日期间隔计算器
计算两个日期之间经过的日历天数和相当的周数,不含结束日期。
输入
提示:按 Ctrl + Enter 运行
已保存的设置
下方的详细帮助目前仅提供英文版。
关于此工具
How many days until a holiday, between two invoices, or since a project started? This calculator counts the calendar days from a start date to an end date and shows the same span in weeks. It uses calendar dates only, so daylight-saving changes and time zones do not shift the answer.
The end date is not counted, which matches how most people count "days until": from Monday to Wednesday is 2 days. If you need both the first and the last day included, for example for a hotel stay counted in nights versus days, add one.
使用方法
- Pick the start date.
- Pick the end date (it can be earlier than the start; the result is then negative).
- Run the calculation.
- Read the number of days and the equivalent in weeks; add 1 if you want to include both end points.
计算原理
Both dates are converted to midnight UTC and subtracted; the difference in milliseconds is divided by 86,400,000. Leap days are counted naturally because real calendar dates are used.
(end UTC − start UTC) ÷ 86,400,000计算示例
From March 1, 2026 to December 25, 2026 is 299 days, or 42.71 weeks. A shop planning a Christmas campaign that starts on March 1 therefore has just under 43 weeks of preparation.
示例输入和结果
2026-01-01 → 2026-02-01 = 31
局限性
- Whole calendar days only; for hours and minutes use the time duration calculator.
- Gregorian calendar only.
- No public holiday awareness.
最后更新:
常见问题
Is the end date included?
No. The count is the number of days you move forward from the start to reach the end. Add 1 to include both dates.
Does it count only working days?
No, every calendar day counts. Use the working days calculator for Monday-to-Friday days.
Do leap years matter?
Yes, they are handled automatically: February 29, 2028 counts as a day.
故障排除
The result is negative.
The end date is before the start date. Swap them for a positive count.
I am one day off from another calculator.
Some tools include both the start and the end date. Add 1 to match them.
I need months and days instead.
Use the age calculator, which reports completed years, months and days between two dates.
隐私 & 免费使用
我的输入会被保存吗?
你的数据只保留在此标签页中。我们不会收到你的文件、粘贴的文本或计算数值。
这个工具免费吗?
是的。无需注册或付费。