入力とオプション
2 つの日付の差を日、週、平日、暦の概算で測定します。
ツールを実行すると結果がここに表示されます。
すべての計算と変換は V8 エンジンまたは WebAssembly によりブラウザ内でローカルに実行されます。ファイルやテキストがデバイスの外に出ることはありません。
概要
Counting days by hand goes wrong around leap years and month boundaries. Enter two calendar dates and get the gap in days, weeks, weekdays and approximate months and years, plus a direction.
使い方
形式と仕様
FAQ
Is the result inclusive?
The day difference is exclusive of the start date. Weekdays are counted from the day after the start date up to and including the end date.
Are leap years handled?
Yes. The calculation works with UTC calendar dates, so February 29 is counted correctly.
What do months and years mean here?
They are approximations based on average calendar lengths (30.44 and 365.24 days), not calendar month boundaries.
Can I use times as well?
This tool works with calendar dates only. For exact second-level values use the Unix Timestamp Converter.
How do I get business days only?
Read the weekdays figure — it excludes Saturdays and Sundays between the dates; public holidays are not subtracted.
Does the order of the dates matter?
No. The direction is labelled past or future, and swapping the two fields reverses the comparison.
制限事項
- Only calendar dates are compared; times of day and timezones are not part of the calculation.
- Months and years use average calendar lengths, so they are approximations rather than calendar boundaries.
- Dates are interpreted at UTC midnight to avoid daylight-saving shifts.