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)
—
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
- Total Days — the absolute difference in calendar days between the two dates
- Total Weeks — total days divided by 7
- Total Months — calculated using calendar month boundaries (not a fixed 30-day month)
- Business Days — weekdays only (Monday through Friday), excluding Saturday and Sunday
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
- Clarify inclusive vs. exclusive counting: When a contract says "within 30 days," determine whether day 1 is the signing date or the following day. Most legal interpretations exclude the start date and include the end date.
- Account for time zones on international dates: A date in Tokyo (UTC+9) is already "tomorrow" while it is still "today" in New York (UTC-5). For cross-timezone deadlines, specify the time zone explicitly.
- Use business days for financial calculations: Interest accrual, settlement dates (T+1 for stocks, T+2 for bonds), and regulatory filing deadlines in the US are counted in business days, not calendar days.
- Watch for leap year edge cases: Dates involving February 28 or 29 can produce surprising results. A range from Feb 28 to March 1 is 1 day in a leap year but also 1 day in a non-leap year.
- Bookmark shareable calculations: Use the Share button to create a URL with your dates pre-filled, making it easy to reference or send to colleagues.