Calculator

Free Date Difference Calculator

Find the exact number of days, weeks, months and years between any two dates. Includes a calendar-accurate years/months/days breakdown, business days and weekday info.

Live calculation 100% offline Business days Calendar-aware

Pick Two Dates

Options

The Difference

Total days
β€” days
Pick two dates above to see the difference.
Calendar-accurate breakdown
0
Years
0
Months
0
Days
Weeks
β€”
Full weeks
Months (approx.)
β€”
Days Γ· 30.4375
Business days
β€”
Mon–Fri, weekends excluded
Weekend days
β€”
Saturdays + Sundays
Weekday info
Start is a
β€”
β€”
End is a
β€”
β€”
Note: Time of day is ignored β€” the calculator counts whole calendar days. Business days exclude Saturdays and Sundays but do not subtract public holidays, which vary by country.

About Date Difference

The difference between two dates is one of the most common calculations in everyday life β€” how many days until a deadline, how long a project ran, how old someone is, or how many working days are left in a sprint. It looks simple, but there are three different answers depending on what you're actually asking.

This calculator gives you all three: the raw day count, a calendar-accurate years/months/days breakdown, and a business-day count that skips weekends.

Three ways to measure a date difference

MethodWhat it countsBest for
Total daysEvery calendar day between the two datesDeadlines, countdowns, project durations
Years / months / daysWhole calendar units, borrowing between themAge, tenancy, subscriptions, milestones
Business daysWeekdays only (Mon–Fri)Sprint planning, SLA timers, invoicing

Exclusive vs inclusive counting

By default, this calculator counts the difference exclusive of the end date β€” the same convention Excel uses with the =DAYS() function and the same one most project managers mean when they say "the project took 14 days."

If you need the end date counted β€” for example, counting the number of nights at a hotel, where check-in and check-out are both part of the stay β€” toggle Include end date. The same two dates then produce a result one day longer.

How the years/months/days breakdown works

Naively dividing the day count by 30.44 gives an approximate month figure, but it doesn't match how people actually talk about duration. If someone asks "how long between 15 January 2023 and 10 March 2024?", the answer they want is 1 year, 1 month and 24 days β€” not "13.8 months".

The calculator walks the calendar properly:

This matches the logic used by age calculators and legal documents, and is the reason it never drifts by more than a day across leap years.

Business days vs calendar days

A calendar day is any day on the calendar, including weekends. A business day (also called a working day) excludes Saturdays and Sundays. A week has 5 business days and 2 weekend days out of 7 calendar days.

Some institutions also exclude public holidays from business days. This calculator does not subtract holidays, because public holidays vary by country, region and year. If you need that, subtract them manually β€” or use a payroll-specific tool from your provider.

Common use cases

Countdown to a deadline

See how many days remain before a project ships.

Age in Y/M/D

Exact years, months and days between a birth date and today.

Sprint planning

Count working days in a two-week iteration.

Invoicing

Calculate business days for billing or SLA windows.

Tenancy & leases

Track how long a contract has been running.

Trip planning

See the exact length of a holiday or event.

Privacy and accuracy

This date difference calculator runs entirely in your browser. All calculations happen locally in JavaScript with no server calls. The dates you enter are never transmitted, stored or logged.

Frequently Asked Questions

How do I calculate the number of days between two dates?
Subtract the earlier date from the later date. In practice, convert both dates to a day count (or timestamp) and divide the difference by the number of milliseconds in a day (86,400,000). This calculator does that automatically and also returns weeks, months, years and business days.
Does the calculator include the end date?
By default, the end date is not counted β€” the difference is exclusive. Toggle Include end date to count both the start and end date as part of the total. For example, 1 January to 3 January is 2 days exclusive and 3 days inclusive.
How are business days calculated?
Business days (also called working days) exclude Saturdays and Sundays. This calculator counts weekdays between the two dates inclusive of both endpoints. Public holidays are not subtracted β€” this is a weekday-only count.
How do I calculate the difference in months and years?
A calendar-month difference is not just days divided by 30. The calculator walks through the calendar: it takes the year difference, then the month difference, then the day difference, borrowing from the previous month when the day is negative. This gives an exact years/months/days breakdown that matches how people talk about age and durations.
Why is the difference in months sometimes different from days divided by 30?
Because months have different lengths. January to February is 31 days, but February to March is only 28 or 29 days. The calendar-aware calculation gives the number of whole calendar months, which is what matters for deadlines, subscriptions and age.
Can I calculate the difference between a past date and today?
Yes. Click the Today button next to either field to set it to today's date, or type any past or future date in either input. The calculator handles both directions and returns a positive result.
Is this date difference calculator free?
Yes, it is 100% free, requires no sign-up and runs entirely in your browser. No length limits, no watermarks, no premium tier.
Is my data sent to a server?
No. All calculations happen locally in JavaScript. The dates you enter are never transmitted, stored or logged.

Related Calculators

Done!