Date Difference Calculator

Quick Answer

The difference between two dates in days equals the count of calendar days from the earlier to the later date; dividing by 7 gives weeks, and dividing by 365.25 gives years (accounting for leap years on the proleptic Gregorian calendar).

Also searched as: date difference calculator

Combined Format

Total Days

Total Weeks

Total Months

Total Years

Total Hours

Total Minutes

Business Days (Mon–Fri)

Copied!

How the Date Difference Calculator Works

A date difference calculator computes the exact elapsed time between any two calendar dates, expressed in days, weeks, months, years, hours, and minutes. This tool is used by project managers tracking deadlines, HR professionals calculating employment tenure, legal teams determining contract durations, and anyone who needs a precise count of time between events. According to the ISO 8601 international standard for date and time representation, the unambiguous way to express a date difference is in the format P[n]Y[n]M[n]D (e.g., P1Y2M15D for 1 year, 2 months, and 15 days).

The calculator handles the inherent complexity of the Gregorian calendar automatically. Months range from 28 to 31 days, leap years add February 29 every four years (with exceptions for century years not divisible by 400), and the combined years-months-days format requires careful rollover logic. For project planning with work schedules, the business day count excludes Saturdays and Sundays. Our Working Days Calculator extends this by also excluding country-specific public holidays. For countdown purposes, try the Days Until Calculator with a live real-time ticker.

How Days Between Dates Are Calculated

The core calculation uses the Julian Day Number system, which assigns a sequential integer to every calendar day. The formula subtracts the Julian Day Number of the start date from the end date to get the total number of elapsed days:

Days Between = |End Date - Start Date| in calendar days

Worked example: From January 15, 2026 to March 22, 2026 = 66 calendar days = 9 weeks and 3 days = 2 months and 7 days = 47 business days = 1,584 hours.

Key Terms You Should Know

Calendar day — a full 24-hour period from midnight to midnight. Date difference calculators count calendar days by default, which includes weekends and holidays.

Business day (working day) — any day that is not a Saturday, Sunday, or public holiday. In the United States, there are typically 250-252 business days per year. Financial institutions, courts, and government agencies operate on business days for deadlines and processing times.

Leap year — a calendar year containing 366 days instead of the usual 365. A year is a leap year if it is divisible by 4, except for century years which must be divisible by 400. The years 2024 and 2028 are leap years; 1900 was not, but 2000 was.

ISO 8601 — the international standard for date and time notation published by the International Organization for Standardization. It mandates the YYYY-MM-DD format (e.g., 2026-03-30) to avoid ambiguity between American (MM/DD/YYYY) and European (DD/MM/YYYY) conventions.

Common Date Ranges and Their Day Counts

The following table provides quick reference day counts for commonly needed date ranges. Business day counts assume no public holidays (actual business days will be slightly lower when holidays are included).

Date Range Calendar Days Business Days Weeks
1 month (30-day) 30 ~22 4.3
1 quarter (90 days) 90 ~64 12.9
6 months (182 days) 182 ~130 26.0
1 year (non-leap) 365 ~261 52.1
1 year (leap) 366 ~262 52.3

Practical Examples

Example 1 — Project deadline tracking: A software team starts a sprint on February 3, 2026 with a delivery date of April 17, 2026. The date difference is 73 calendar days (10 weeks, 3 days) and 52 business days. This tells the project manager they have 52 working days to plan across, which helps allocate sprints and milestones. Calculate your own timelines with our Countdown Calculator.

Example 2 — Employment tenure for benefits: An employee starts on June 12, 2023 and needs 3 years of service by their anniversary for full vesting. Three years from June 12, 2023 is June 12, 2026 = 1,096 calendar days (including one leap year). As of March 30, 2026, they have completed 1,022 days, with 74 days remaining.

Example 3 — Pregnancy due date estimation: A pregnancy is typically 280 days (40 weeks) from the first day of the last menstrual period. If the LMP was January 5, 2026, the estimated due date is October 12, 2026 — exactly 280 calendar days later. Verify this with our Age Calculator to track gestational age.

Tips for Working with Date Differences

Frequently Asked Questions

Related Calculators

Age Calculator Days Until Calculator Working Days Calculator Time Calculator Birthday Calculator