Tool Hub

日期范围

计算两个日期之间的天、周、月、年差

计算两个日期之间的确切差异,以天、周、日历月和年为单位。对于截止日期、合同、周年纪念日或项目持续时间很有用。例如:从2024-01-01到2024-12-31是365天、52.14周或11个日历月。

时长

Days

0

Weeks

0.00

日历月(精确)

0

Months (approx)

0.00

Years (approx)

0.00

月/年(近似)为平均值 — 对于精确的月数计数,请使用日历月。

使用方法

  1. Pick a start date and an end date with the date pickers.
  2. Read the results: exact days, weeks (2 decimal places), calendar months, approximate months, and approximate years.
  3. Use calendar months for exact month counts; use approximate months and years for average-based estimates.
  4. Share the result via the share button to send the date pair to someone else.

示例

  • From 2024-01-01 to 2024-12-31 gives 365 days, 52.14 weeks, 11 calendar months, 11.99 months (approx), 0.99 years (approx).
  • From 2020-02-28 to 2021-02-28 gives 366 days (leap year), 12 calendar months.

生产环境使用前请验证输出。无担保 — 参见 条款.