時間/数値
日付差計算ツール
2つの日付/時刻の正確な差 — 暦での内訳(年、月、日…)、合計期間、営業日数。
This tool calculates the exact difference between two dates and times: a calendar breakdown in years, months, and days, a total duration in a single unit (just days or hours), and separately, the number of business days excluding weekends.
How to use it
- Pick a start and end date (optionally with time and timezone) and the result is calculated instantly.
- The calendar breakdown reads naturally: "2 years, 3 months, 10 days" rather than just a raw day count.
- Business days are shown separately — weekends (Saturday and Sunday) are excluded from that count.
Common uses
- Working out how long a contract, warranty, or subscription runs in calendar units.
- Planning a project deadline in business days, excluding weekends.
- Calculating an age, tenure, or event duration down to the day.
Things to keep in mind
A calendar difference (years/months/days) depends on the actual dates involved — months have different lengths, so "1 month" can mean anywhere from 28 to 31 days.
The business-day count only excludes Saturday and Sunday — public holidays need to be subtracted manually if they matter for your calculation.
よくある質問
差分は終了日を含めて計算されますか、それとも含めずに計算されますか?
このツールは2つの時点間の天文学的な差分(含めない)を計算します — つまり「1日から3日まで」は2日を返し、3日ではありません。両方の日付を含むカレンダー日数が必要な場合は、1日を加えてください。
長さの異なる月や年はどのように扱われますか?
カレンダー差分(年/月/日)は、人がカレンダーで数えるのと同じ方法で計算されます: まず実際の長さを考慮して完全な年と月を引き、残りを日数で表します。
「営業日」とは何を意味しますか?
選択した期間内の月曜日から金曜日までの日数です。祝日は国によって異なるため考慮されません。
短い月の境界で、ツールによって月の差の計算結果が異なることがあるのはなぜですか?
前の月に存在しない日付から1ヶ月を引く場合(例えば3月31日マイナス1ヶ月)、これは曖昧です——一部のライブラリは2月の最終日に丸め、別のライブラリははみ出た日数を3月の初めに繰り越します。どちらのアプローチも理にかなっていますが、結果が異なります。
1970年以前の過去の日付の差も計算できますか?
はい、計算はUnixエポックに制限されておらず、1970年より前の日付を含むあらゆる暦日について正確に動作します。