计算两个日期之间的天数,或从某个日期加减天、周、月和年。显示时长、总天数和星期。
如何使用 日期计算器
选择是计算两个日期之间的差值,还是加减一段时间。
输入日期,或输入数量和单位。
查看时长、总天数以及结果日期及其星期。
The date calculator does two jobs: it measures the time between two dates, and it adds or subtracts a period from a date. It shows the result as a year, month and day breakdown, a total number of days and weeks, and the weekday of the resulting date.
Everything is calculated in your browser, so the dates you enter never leave your device.
Counting days sounds simple but has a catch: do you count both endpoints or the nights between them? By default the calculator counts the nights, so the start day is not double-counted, with an option to include both the first and last day when you need an inclusive count.
Adding months or years keeps the same day of the month where possible. If the target month is shorter, for example adding a month to 31 January, the date rolls forward following standard calendar behaviour, so the result is always a real date.
All calculations use real calendar dates, so leap years and the differing lengths of months are handled correctly rather than approximated.
It is handy for everyday planning: project deadlines, payment and due dates, notice and cancellation periods, ages and anniversaries, and working out which weekday a date falls on.
常见问题
默认情况下,计算器计算两个日期之间的夜晚数,因此起始日不会被重复计算。开启“同时计入结束日”可同时包含首日和末日。
加月或年时会尽量保留当月的日期。如果目标月份较短,日期会顺延到下一个月,遵循标准日历行为。
处理。所有计算都使用真实日历日期,因此闰年和不同月份长度都会被正确处理。
它把间隔表示为整年、整月和整天,并同时给出总天数和总周数。
嵌入此工具
将此工具添加到你自己的网站。复制下方代码片段即可,它会自动保持最新。
<iframe src="https://monu.tools/embed/zh/datum-rechner" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>相关工具