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。

生產環境使用前請驗證輸出。無擔保 — 參見 條款.