Toolivaro

無料の日付の差の計算ツール

2つの日付の間の日数・週数・月数・年数を、信頼できる1つの方法で正確に計算します。

日付の差の計算ツールは、2つの日付の間にどれだけの時間があるかを、役立つすべての単位で一度に返します。暦での合計日数、週数と余りの日数、月数、年数です。方法はあえてシンプルにし、ページに明記しています。差は2つの日付の間の暦日数で測ります(開始日は数えず、終了日は丸1日として含みます)。より大きな単位はその日数から標準的な近似値で導きます。1か月の平均は30.44日、1年の平均は365.25日です。すべての単位が同じ日数から導かれるため、結果は常に互いに一致します。これは計画を立てるときに実際に必要な性質です。「2週間」という締め切りと「14日」という締め切りが、使ったツールによって変わることがあってはならないからです。このツールはタイムゾーンに依存せず、瞬間ではなく暦の日付を比較するため、サマータイムの変更で結果がずれることはありません。すべてブラウザ上でローカルに実行され、日付が端末の外に出ることはなく、記録されることもありません。契約期間、予約期間、プロジェクトの工期など、根拠のある日数が必要な計画にご利用ください。

ブラウザ内でローカル処理されます

この計算機の使い方

What this calculator is for, and when to use the business-days tool instead

The date difference calculator tells you exactly how much time sits between two dates, in every unit you might need on one screen: total calendar days, whole weeks plus remaining days, whole months, and whole years. It is the tool to reach for when a number must be defensible: a contract period, a notice window, a rental agreement, a booking window, a project duration, or a countdown where someone will ask how you counted. Because the day count is exact and the larger units derive from that same count, all four answers agree with each other, which matters more than it sounds: a deadline described as two weeks should always equal fourteen days, no matter which page you used. The calculation runs entirely in your browser, and your dates are never uploaded, logged, or stored. Use it whenever the number will go into writing, an email, or a contract, because written numbers are the ones that get argued over.

The calculator counts calendar days: every midnight boundary between the two dates is one day, and weekends and holidays are included, because a week of a rental or a contract is seven calendar days, not five. If your question is about working days, how many business days until a payment lands or a review is due, that is the job of the business-days calculator, which skips weekends and holidays. This tool also does not measure age in the birthday sense, and it works with dates only, not times of day. What it does guarantee is a single, stated, repeatable method: the same two dates always return the same numbers, anywhere on Earth, in any time zone, which is exactly what you want when the number has to survive an argument. Two people counting the same span with the same method will never disagree, and that consistency is the point of using a calculator at all.

Choosing the two dates and getting the counting convention right

The two fields are Start date and End date, standard date pickers that also accept typed dates in YYYY-MM-DD form. The order does not matter: the calculator takes the absolute difference, so entering the later date first returns the same result, which is handy when you realize you typed them backward. The counting convention is stated on the page: the start day is not counted, and the end day is counted when it is a full day. In practice that means January 1 to January 2 is 1 day, January 1 to January 1 is 0 days, and a booking that starts March 1 and ends March 31 spans 30 days. If your contract, lease, or school counts both endpoints, treating the start date itself as day one, add one day to whatever this tool returns, and write that convention down so nobody re-counts differently later. A recorded convention beats a remembered one, especially in shared documents.

Two pitfalls trip people up. First, mixing counting conventions mid-plan: if one document uses midnight counting and another counts both endpoints, the same period will disagree by a day, so pick one convention and apply it everywhere. Second, expecting weekends and holidays to disappear: because these are calendar days, a two-week window always includes two weekends, and that is correct for rental and contract math even though it feels wrong for work planning. Time zones cannot shift the result, because the calculator compares calendar dates, not instants: a daylight-saving change in between does not add or remove a day. And this tool only measures the gap between two dates you already have; if you need the date that falls 45 days from today, that is a different calculation entirely. Reversed inputs are the third pitfall that is not one: the result is identical, so there is nothing to fix.

Reading the results: days, weeks, months, and years

The results panel gives you four lines that all tell the same story in different granularities. Total days is the exact calendar-day count, the number to quote in a contract or a dispute. Weeks and days splits that count into whole 7-day blocks and the remainder: 90 days becomes 12 weeks and 6 days, and the pair always reconciles back to the total, which is a quick sanity check. Months and years are derived from the same day count using the standard averages: 30.44 days per month and 365.25 days per year, the latter already accounting for leap years. Both are rounded down to whole units, so 45 days shows as 1 month, not 1.48, and 396 days shows as 1 year even though it contains about thirteen months. The four lines are deliberately consistent, and any two of them that disagree mean you are looking at a different calculation. That is the design working: one exact count, four ways of saying it.

Read the months and years lines as summaries, not calendar-aware facts: 2 months between January 15 and April 15 does not mean two full calendar months by their actual lengths, it means 90 days divided by 30.44 and rounded down. That is the honest trade-off behind the design: month and year lengths vary, so any month count is a convention, and deriving all of them from one exact day count keeps the results consistent and defensible. When the stakes are high, quote the days line: 90 days is unambiguous, while 3 months leaves room for interpretation. And if a result looks wrong, check the convention before the calendar: most disagreements about day counts are disagreements about whether the start or end day was counted, not about the dates themselves. The calculator cannot know which convention your document uses, so it states its own plainly and lets you translate. That translation is the whole adjustment: one day, added or subtracted, on top of a number you can trust.

結果はどうやって計算されるの?

契約期間: 1月15日から4月15日

契約がうるう年でない年の1月15日から4月15日まで続くとします。日数は暦日で90日です。これは12週と6日、つまり2か月、0年になります。4つの答えはすべて同じ90日から導かれるため、内部で矛盾しません。

入力と出力の例
入力
startDate 2026-01-15
endDate 2026-04-15
結果 90日 · 12週 + 6日 · 2か月 · 0年

100-day booking across the spring clock change: Mar 1 to Jun 9

A 100-day rental booking runs from March 1 to June 9, 2026, and the number has to be right, because the deposit, the cleaning handover, and the refund all hang on it. Count the days: March has 31 days, April 30, May 31, and June 9 is the end date, counted as a full day while the start day is not counted, so the total is 31 + 30 + 31 + 8 = 100 calendar days. The calculator splits that into 14 whole weeks and 2 remaining days, because 14 × 7 is 98. Divided by the 30.44-day average month, 100 days is 3 whole months, and it is 0 whole years. All four numbers come from that single 100-day count, so none of them can contradict another. What makes this example worth checking is the spring clock change inside the window: in most of North America and Europe the clocks move forward in March, so a naive count of 24-hour periods would be off by an hour or more. The calculator compares calendar dates, not instants, so the answer is exactly 100 days either way, like a landlord who counts rent by the calendar on the wall rather than by the clock on the mantel. If the agreement counts both the move-in and the move-out day, add one day and quote 101; if it counts midnights, 100 is the defensible number. The same two dates return the same result everywhere on Earth, which is the point of using a calculator instead of a guess.

入力と出力の例
入力
startDate 2026-03-01
endDate 2026-06-09
結果 100 days · 14 weeks + 2 days · 3 months · 0 years

Leap-day contract: Feb 29, 2028 to Mar 31, 2029

A project contract starts on February 29, 2028, a real date, because 2028 is a leap year, and it ends on March 31, 2029. Counting midnights: February 29 to March 1 is 1 day; the rest of 2028 contributes 31 for March, 30 for April, 31 for May, 30 for June, 31 for July, 31 for August, 30 for September, 31 for October, 30 for November, and 31 for December, which is 306 days, so February 29 to January 1, 2029 is 307 days. Then January contributes 31, February 2029 has 28 days because 2029 is not a leap year, and March contributes 30, which is 89 days, for a total of 307 + 89 = 396 calendar days. The calculator derives the other units from that single count: 396 divided by 7 is 56 whole weeks with 4 days left over; 396 divided by 30.44 is 13 whole months; and 396 divided by 365.25 is 1 whole year. The leap day is not a rounding artifact or a free day, it is a real day of work on a real contract, like a cashier who counts the pennies in the drawer, not just the bills. Notice that the years and months lines seem to disagree at a glance: 1 year and 13 months are both right, because the average year of 365.25 days is shorter than 13 average months of 395.72 days. Quote the 396-day figure in the contract and nobody needs to interpret anything: it is exact, it includes the leap day, and it is the same count in any time zone on Earth. Do the same count in your head and you will get the same number every time, which is the entire point of a stated method.

入力と出力の例
入力
startDate 2028-02-29
endDate 2029-03-31
結果 396 days · 56 weeks + 4 days · 13 months · 1 year

計算式と前提は?

暦日数

days = |dateB − dateA| in calendar days

計算式の記号
記号 意味
dateA, dateB 2つの日付(順序は問いません)
calendar days 真夜中の境目ごとに1日と数えます

暦日数であり、営業日ではありません。週末と休日を含みます。含めたくない場合は営業日計算ツールをご利用ください。

大きな単位(近似値)

weeks = ⌊days/7⌋ · months = ⌊days/30.44⌋ · years = ⌊days/365.25⌋

計算式の記号
記号 意味
⌊x⌋ 床関数 — 収まる最大の整数単位
30.44 1か月の平均日数
365.25 1年の平均日数(うるう年を含む)

よくある間違いは?

  • 両端を数えてしまうこと(「両端を含む」計算)。日数が1日多くなります。このツールは真夜中の境目で数えます。
  • 「週」と「営業日」を混同すること。このツールが数えるのは暦日で、営業日は別のツールです。
  • タイムゾーンの差で締め切りの日数を変えてしまうこと。暦の日付はタイムゾーンに依存しません。

前提と制限は?

  • 月数と年数は平均値であり、暦に基づくものではありません(たとえば「2か月」が特定の月の長さに結びつくわけではありません)。
  • 暦日数には週末と休日が設計上含まれます。
  • このツールが扱うのは日付のみで、時刻の精度には対応していません。

数値の出典は?

最終確認 2026年8月12日 · バージョン 1.1.0 · Toolivaro 外部コンテンツを保証するものではありません。

よくある質問

終了日は日数に含まれますか?

このツールは2つの日付の間の真夜中の境目を数えるため、「1月1日から1月2日」は1日、「1月1日から1月1日」は0日です。両端を数える約束の場合は、結果に1日を足してください。

なぜ月数と年数が近似値なのですか?

暦の月と年は長さが一定ではないため、月数や年数の数え方はどの方法も約束にすぎません。このツールでは正確な日数から標準的な平均値(30.44日と365.25日)で導いています。一貫性があり根拠も明確で、同じ行の日数と常に一致します。

タイムゾーンの影響を受けますか?

いいえ。このツールは瞬間ではなく暦の日付を比較します。2つの日付が同じ組み合わせなら地球上のどこでも同じ日数になるため、サマータイムの変更で日数がずれることはありません。

Why does the result show weeks and days instead of just weeks?

Because weeks rarely divide a day count evenly. One hundred days is 14 weeks and 2 days, and 90 days is 12 weeks and 6 days: if the tool showed only whole weeks, the remainder would vanish and the number would no longer match the exact day count. The pair always reconciles: multiply the weeks by 7, add the remaining days, and you get the total days line. That check is the fastest way to trust a result, and it is why the weeks figure is shown as a pair rather than a single rounded number.

Does it matter which date goes in which field?

No. The calculator takes the absolute difference, so February 1 to March 1 and March 1 to February 1 both return 28 days in a non-leap year and 29 in a leap year. Typing the pair backward changes nothing, so there is no need to fix the order. Both fields expect dates in YYYY-MM-DD form, which the picker provides. If a result still looks wrong, check the convention before the calendar: the start day is not counted, the end day is counted when it is a full day, and identical dates return 0 days.

A lease says 30 days from March 1. Which date is that?

Under this calculator's convention, 30 days from March 1 is March 31: the start day is not counted, so there are 30 midnights between March 1 and March 31. If your lease counts the start day as day one instead, day 30 falls on March 30, and you would add one day to the tool's result to match that rule. The calculator states its own convention plainly because agreements differ, and the exact day count is the number you adjust from, whichever rule your document uses.

このコレクションの一部 時間・日付・スケジュールツール

間違いを見つけましたか? 報告する — すべての修正を確認します.

このツールは役に立ちましたか?

Toolivaro編集チームが当社の方法論に基づいてレビュー済み 計算方法 · 編集方針