DATE CALCULATOR

日期计算器,相差几天一算便知。

计算两个日期之间相差多少天,或者在某个日期上加减天数,推算出目标日期和星期几。

相差天数

—

日期推算

—

本页处理在浏览器本地完成

解题动画 · 月历高亮

这个工具能做什么?

它能快速回答两类问题:两个日期之间隔了多少天(比如倒计时、纪念日),以及从某天起再过/往前多少天是几号、星期几(比如项目截止、还款日)。

常见问题

相差天数怎么计算?

按自然日计算,结束日期减开始日期,含跨月与闰年。

数据会上传吗?

不会。计算完全在当前浏览器内完成。

示例与注意事项Example & notes

一个例子A worked example

算合同到期日:起点 2026-01-31、加 3 个月,得到 2026-04-30(目标月没有 31 日时自动退到月末)。Contract end date: start 2026-01-31 plus 3 months gives 2026-04-30 — when the target month is shorter, it snaps to month end.

注意事项Things to watch

相关问答More Q&A

「加 30 天」和「加 1 个月」一样吗?Is "add 30 days" the same as "add 1 month"?

不一样。前者是固定天数(1 月 31 日 + 30 天 = 3 月 1 日),后者按自然月对齐(1 月 31 日 + 1 月 = 2 月 28/29 日)。No. The first adds a fixed span; the second aligns to the calendar month, so 31 January + 1 month lands on 28/29 February.

能一次算多组日期吗?Can I calculate several ranges at once?

一次处理一组,结果可一键复制,便于接着算下一组或贴进表格。One range per pass, with a copy button so you can chain the result into the next calculation or a spreadsheet.

深入阅读

觉得好用?Found it useful?