Monu Tools

日期計算機

計算兩個日期之間的天數,或從某個日期加減天、週、月和年。顯示時長、總天數和星期。

如何使用 日期計算機

  1. 01

    選擇是計算兩個日期之間的差值,還是加減一段時間。

  2. 02

    輸入日期,或輸入數量和單位。

  3. 03

    查看時長、總天數以及結果日期及其星期。

What it does

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.

How the days are counted

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 and years

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.

Everyday uses

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-Hant/datum-rechner" width="100%" height="640" style="border:1px solid #e5e5e5;border-radius:12px;max-width:680px" loading="lazy" title="Monu Tools"></iframe>

相關工具