日期与时间

日期差计算

计算两个日期之间的时间。

输入数据

由 UtilBrix 提供支持

计算结果

Calendar difference
0 years, 9 months, 18 days
Total days
291
Total weeks
41.57
Total hours
6,984
Total minutes
419,040

详细方法和示例目前以英语提供。

Step-by-step instructions (English)

  1. Enter a start date and an end date.
  2. Choose whether to include the end date in the count.
  3. Calculate and distinguish the calendar year/month/day breakdown from total elapsed days.

公式与方法

Calendar years, months, and remaining days are calculated separately from total elapsed days. Month arithmetic clamps to a valid end-of-month date. Including the end date adds one calendar day to the interval. Times of day and local clock changes are excluded.

实际示例

From 1 January to 31 January there are 30 elapsed days. With the end date included, the count is 31 days.

When this tool is useful

Compare project dates, count days between events, or check a calendar interval. When a form asks for total days, use that result rather than converting the calendar-month breakdown using a fixed month length.

Common mistakes and limitations

  • Elapsed days and inclusive calendar dates are different counts.
  • This tool ignores time of day. A daylight-saving change does not change its calendar-day result.

Practical questions about this tool (English)

Why are there 30 days from January 1 to January 31?

There are 30 elapsed day boundaries between the dates. Including the end date counts 31 calendar dates instead. Choose the convention your task requires.

Is this a working-day count?

No. All calendar days are included. Use Working Days Calculator when weekends or a holiday list must be excluded.

Put this tool into practice

相关工具

安装UtilBrix

从主屏幕快速访问工具。

  1. 打开浏览器菜单(⋮)。
  2. 选择“安装应用”或“添加到主屏幕”。
  3. 确认将UtilBrix添加到主屏幕。

如果找不到此选项,请在Android版Chrome中打开页面。

搜索工具

↑ ↓ Navigate · Enter Open · Esc Close