日付・時間・暦項目 № 04.01

日付間隔・日数差計算機 - 無料オンライン計算ツール

開始日と終了日からその間の総日数、週数、月数、実日数を正確にカウント。スケジュール管理に最適。

What does this calculator do? Select any two calendar dates to instantly calculate the exact span in days, weeks, months, years, and total hours.

What does this calculator do?

This calculator measures the exact duration between any two dates on the Gregorian calendar, breaking down the span into total calendar days, full weeks with remaining days, and elapsed calendar months and years. It is designed for calculating exact age, verifying employment history on a resume, planning project timelines, or tracking countdowns.

If you accidentally enter the end date before the start date, the calculator doesn't break - it automatically works out the difference in the correct order and shows you a small notice about it.

Why is there an "include terminal day" toggle? In some cases (like counting rental days or leave days), you want both the start and end date counted. Turning this on adds one extra day to the total.

The method this calculator uses

Calculation Methodology & Algorithms
  • Total days: the millisecond gap between the two dates is divided by 24 hours (86,400,000 ms), then rounded to the nearest whole number (Math.round). This stays accurate even across Daylight Saving Time changes (23-hour or 25-hour transition days).
  • Years/months/days breakdown: this is calendar-based, not just 'total days ÷ 365'. For example, if the day component comes out negative (crossing into the next month), days are 'borrowed' from the previous month - exactly how you'd count it by hand on a calendar.
  • Weeks and remaining days: total days ÷ 7 = full weeks, with the leftover days shown separately.
  • "Year Fraction": total days ÷ 365.25 × 100. The 365.25 is used because it's the average length of a year once leap years are accounted for (one extra day every 4 years) - it's a standard approximation, not an exact '365-day year'.
Total Calendar Days
Δt = Math.round(|t₂ − t₁| ÷ 86,400,000) [+ 1 if inclusive]
Weeks & Remaining Days
W = Math.floor(Δt ÷ 7), Remainder = Δt % 7
Time Unit Breakdown
Hours = Δt × 24 | Minutes = Hours × 60 | Seconds = Minutes × 60
Year Fraction Percentage
Y% = (Δt ÷ 365.25) × 100 (Accounting for Leap Year cycle)

Verified fact: Using Math.round(diffMs / 86400000) prevents DST (Daylight Saving Time) 23-hour or 25-hour clock transitions from distorting calendar day totals.

Step-by-Step Calculation Examples (Hand-Verified)

ステップごとの計算例 1

Example 1: 1 January 2026 to 15 March 2026

1
Total Days:30 remaining in January + 28 in February (2026 is not a leap year) + 15 in March = 73 days
2
Years / Months / Days:0 years, 2 months, 14 days (Jan 1 + 2 months = Mar 1, + 14 days = Mar 15 ✓)
3
Weeks & Days:73 ÷ 7 = 10 full weeks, 3 days remaining
4
Hours & Precision:73 × 24 = 1,752 hours
5
Year Fraction:(73 ÷ 365.25) × 100 ≈ 20.0%
With 'include terminal day' on, total days becomes 74.
ステップごとの計算例 2

Example 2: Dates entered in reverse - start 8 November 2026, end 1 January 2026

1
Reverse Order Detection:The widget detects the reversed order (isReversed) and displays an informative notice.
2
Chronological Span:It always calculates from earlier to later date: 1 January 2026 to 8 November 2026.
3
Total Days:311 days
4
Years / Months / Days:0 years, 10 months, 7 days (Jan 1 + 10 months = Nov 1, + 7 days = Nov 8 ✓)
5
Weeks & Days:311 ÷ 7 = 44 full weeks, 3 days remaining
6
Year Fraction:(311 ÷ 365.25) × 100 ≈ 85.1%

Reference Tables & Date Format Conventions

Table A - Date Formats by Country and Language

Country / LanguageFormatExample (8 November 2026)
India (Hindi/English)DD/MM/YYYY08/11/2026
Germany (Deutsch)DD.MM.YYYY08.11.2026
France (Français)DD/MM/YYYY08/11/2026
United States (US English)MM/DD/YYYY11/08/2026
UK / International EnglishDD/MM/YYYY08/11/2026
Technical Standard (ISO 8601)YYYY-MM-DD2026-11-08

Table B - What Does '03/04/2026' Mean? (The Universal Ambiguity)

Reader LocationMeaning of 03/04/2026
United States (US)4 March 2026 (Month first)
India, Europe, UK, Australia3 April 2026 (Day first)
Safe Method: Spell out the month name (e.g., '3 Apr 2026' or '04 Mar 2026') or adopt the ISO 8601 standard (2026-04-03).

Table C - All Output Units at a Glance

UnitDerivation Method
Total DaysMillisecond gap ÷ 24 hours, rounded to nearest whole number
WeeksTotal days ÷ 7 (integer quotient) + leftover days
HoursTotal days × 24
MinutesHours × 60
SecondsMinutes × 60
Year Fraction(Total days ÷ 365.25) × 100
In-Depth Editorial Analysis

What does "03/04/2026" mean? - Why date formats differ worldwide and how this causes real errors

If you see "03/04/2026" written somewhere, its meaning depends entirely on where you are. In the US, dates are written Month/Day/Year, so this represents 4 March 2026. But in India, most of Europe, and the UK, dates are read Day/Month/Year, meaning the same digits represent 3 April 2026 - an entirely different date over four weeks later.

This isn't merely a linguistic curiosity. A date misread in the wrong order on a visa application, a pharmaceutical expiry date, an international flight ticket, or a legal contract can cause severe real-world harm - like discarding expensive medication prematurely or invalidating legal notices.

1. Day-Month-Year (DD/MM/YYYY or DD.MM.YYYY)
India, UK, Australia, and most of continental Europe (Germany with dots, France with slashes).
2. Month-Day-Year (MM/DD/YYYY)
Mainly the United States and a few associated territories.
3. Year-Month-Day (YYYY-MM-DD, ISO 8601)
China, Japan, technical databases, and the global ISO standard - naturally sortable in numeric order.
What to watch for with this calculator: when typing a date manually (or pasting one in), make sure you're entering it in the order the date picker expects - this ambiguity matters most on English-language pages serving both US and non-US visitors.
よくある質問(FAQ)

Frequently Asked Questions (FAQ)

How do I find the number of days between two dates?

Take the millisecond gap between them and divide by 24 hours (86,400,000 ms). This calculator does that automatically, alongside weeks, months and years.

What happens if I enter the end date before the start date?

No problem - the calculator detects it, computes in the correct order, and shows a small notice.

What does "include terminal day" mean?

Normally only the span between the two dates is counted. Turning this on adds the end date itself to the count (+1 day) - useful for counting rental or leave days.

How is "Year Fraction" calculated?

Total days ÷ 365.25 × 100. The 365.25 is the average year length once leap years are factored in.

What does 03/04/2026 mean?

It depends where you are. In the US it's 4 March 2026; in India/Europe it's 3 April 2026. Always check whether a format is DD/MM or MM/DD.

Verified Sources & Standards

Verification note: Country-specific formats are verified against official standards. All external links open safely in a new tab.

関連する計算機

「日数計算」とあわせてよく使われている計算ツール

全て見る 日付・時間・暦 →
営業日№ 04.02

営業日・稼働日数計算機(平日カウント)

土日や週末を除外した正味の営業日数・稼働日数を計算。納期管理や業務計画の立案に便利。

W = Total Days − Weekend Days − Holidays計算機を開く
曜日判定№ 04.03

曜日計算機(指定日の曜日特定)

過去や未来の任意の日付が何曜日だったか・何曜日になるかを瞬時に判定。うるう年にも完全対応。

h = (q + ⌊13(m+1)/5⌋ + K + ⌊K/4⌋ + ⌊J/4⌋ − 2J) mod 7計算機を開く
日付シフト№ 04.05

日付加減算・○日後○日前計算機

基準日から「○日後」「○週間後」「○日前」などの正確な該当日を計算。記念日や締切の確認に。

Target Date = Start Date ± (Y, M, W, D)計算機を開く

高精度計算・プライバシー100%保護

全ての計算はお使いのブラウザ上でIEEE 754倍精度演算により実行されます。入力したデータは外部サーバーに送信・保存されることは一切ありません。