Skip to content

Days Between Dates

Calculate the duration between two specific dates.

The Math Behind It

The duration between two dates is calculated by subtracting the start date serial value from the end date serial value.

DDifference in days
T_2End date represented as day number
T_1Start date represented as day number

Manual Calculation Example

Let's find the number of days between March 1, 2026, and March 15, 2026.

Identify Start Date
Set the initial date of the period.
Start Date = March 1, 2026
Identify End Date
Set the final date of the period.
End Date = March 15, 2026
Calculate Day Gap
Subtract the start day from the end day to find the duration.
15 - 1 = 14 Days

How the day count works

The calculator reads both entries as calendar dates, subtracts them and reports whole days. The count excludes one endpoint: March 1 to March 2 is 1 day. Add 1 when both the first and last day should count, as with a leave period or an event that runs every day from start to finish. Entering the dates in reverse order gives the same positive number.

Weeks are whole weeks, days ÷ 7 rounded down. Hours are days × 24. The years-and-months line is an estimate that divides by 365.25 days per year and 30.44 days per month, so near the end of a month it can read one month short of what a calendar would show.

Second worked example: February 10 to June 30, 2026

Inputs: start 2026-02-10, end 2026-06-30. Days remaining in February after the 10th: 28 − 10 = 18, since 2026 is not a leap year. Add March (31), April (30), May (31) and June (30): 18 + 31 + 30 + 31 + 30 = 140 days. The tool shows 140 days, 20 weeks and 3,360 hours. Counting both ends, the span is 141 days.

Leap days are handled by the calendar itself. The US Naval Observatory states the rule: years evenly divisible by 4 are leap years, except century years not evenly divisible by 400, so 2000 was a leap year and 2100 will not be. A range from 2024-01-01 to 2025-01-01 is 366 days, while 2023-01-01 to 2024-01-01 is 365.

Daylight saving time and time zones

Because the inputs carry no clock time, the tool compares them as calendar days rather than as local times. March 7 to March 9, 2026 crosses the spring clock change in most of the US and Canada and still returns 2 days, even though only 47 hours pass on a Toronto wall clock between those two midnights. The hours figure is calendar hours, days × 24, not elapsed clock time.

For contracts, court filings or notice periods, the governing rule decides whether the first day, the last day, weekends or holidays count. This tool gives the raw calendar gap, which is the starting point for those rules rather than the final answer.

Limits and edge cases

  • Weekends and public holidays are not removed; the count is calendar days.
  • An empty or incomplete date does not produce a meaningful count.
  • The years and months line is approximate, based on average month and year lengths.
  • Hours assume 24-hour days and ignore daylight saving changes.

Sources checked

Frequently Asked Questions

How many days are in a year including leap years?
A common year has 365 days, while a leap year has 366 days. Our calculator automatically handles these variations for perfect accuracy.
How do you calculate weeks between dates?
Divide the total number of days by 7. Our tool provides this breakdown automatically along with months and years.
Does the start date count?
No. The count excludes the start day, so March 1 to March 2 is 1 day, the same as counting nights. Add 1 to the result if you need both the start and end dates included.
How do I count both the start and end date?
Add 1 to the result. February 10 to June 30, 2026 shows 140 days; counting both dates, the span is 141 days.
Do daylight saving time changes affect the count?
No. The dates are compared as calendar days, so a range that crosses a clock change still counts each day once. The hours figure is days times 24 and does not adjust for the lost or gained hour.

Time Units

This tool calculates the total count of:

  • Days: The most basic unit.
  • Weeks: Groups of 7 days.
  • Months: Approximate chunks (28-31 days).
  • Years: Full orbital periods.

Did you know?

The concept of a 7-day week originates from the ancient Babylonians and is based on the 7 celestial bodies they could see: Sun, Moon, Mars, Mercury, Jupiter, Venus, and Saturn.

About the Days Between Dates

Find the number of days, months, and years between any two calendar dates.

Results are estimates; verify regulated rates, eligibility rules, and professional decisions with the cited primary source.

Important: Educational Purposes OnlyThe calculators, estimates, and financial formulas provided on CalculatorVillage.com are for informational and educational purposes only. They are not intended as certified financial planning, tax, legal, or investment advice. Actual rates, terms, and returns will vary. Always consult with a qualified professional before making significant financial decisions.