UnitPlanet

Date Difference Calculator

The date difference calculator counts the exact number of calendar days between any two dates and expresses the result in days, weeks, approximate months, and approximate years simultaneously. Enter a start date and an end date — if the end date is earlier, the result shows "before" to indicate the direction.

The formula

days = end_date − start_date  (in whole calendar days)
weeks = floor(|days| / 7)
remainder_days = |days| mod 7
approx_months = floor(|days| / 30.4375)
approx_years = floor(|days| / 365.25)

The month and year figures use average calendar lengths (30.4375 days/month, 365.25 days/year) and are labelled "approximate" because calendar months have 28–31 days and years are 365 or 366 days.

Practical examples

Example 1 — Days until an event

Today is May 28, 2026. A concert is scheduled for August 15, 2026.

May 28 → August 15: 79 days, 11 weeks 2 days, ≈ 2 months, ≈ 0 years.

Example 2 — Days since a past date

A contract was signed on January 1, 2025. Today is May 28, 2026.

January 1, 2025 → May 28, 2026: 512 days, 73 weeks 1 day, ≈ 16 months, ≈ 1 year, in the past.

Example 3 — Weeks between two dates in different years

Project started March 15, 2023. Deadline is September 30, 2024.

March 15, 2023 → September 30, 2024: 565 days = 80 weeks 5 days.

Common mistakes

Counting the start date as day 1. This calculator counts from the day after the start date. January 1 to January 8 = 7 days, not 8. This matches the standard convention: "7 days from today" means 7 full days elapsed.

Assuming months are 30 days each. The approximate months figure uses 30.4375 days (the average calendar month accounting for leap years). For exact month counts, use the Age Calculator, which tracks calendar month boundaries precisely.

Ignoring direction. If the end date is before the start date, the calculator shows the absolute number with a "before" label. The sign tells you the relationship between the two dates.

International and regional variations

ContextConventionExample
Legal / contractCalendar days, start day excluded30-day notice from Jan 1 expires Jan 31
Finance / settlementsT+2 settlement = 2 business daysUse Business Days calculator for this
Medicine / clinicalInclusive counting common (day 0 = start)"Day 7 of treatment" = 6 days elapsed
Age calculationCalendar month boundaries, not day countUse Age Calculator for exact years/months/days

Quick reference — common date intervals

IntervalDaysWeeks
1 month (average)≈ 30.4≈ 4.3
1 quarter≈ 91.3≈ 13
1 year (non-leap)36552 weeks 1 day
1 year (leap)36652 weeks 2 days
5 years1,826 or 1,827260–261
10 years3,652 or 3,653521–522
DaysSame day
Weeks
Approx. months
Approx. years

Frequently Asked Questions

How does the calculator count days between two dates?
It counts calendar days inclusive of neither the start nor end date — the same way most event counting works. For example, from Jan 1 to Jan 8 is 7 days.
Why does the months result say 'approximately'?
Calendar months have different lengths (28–31 days), so the calculator uses an average of 30.4375 days per month for the approximate months figure.
Can I calculate days from a future date back to today?
Yes. If the end date is before the start date, the result will show a negative direction — you can see how many days ago or in the future a date falls.
Does the calculator account for leap years?
Yes. It uses actual calendar dates, so February 29 on leap years is counted correctly.
How is this different from the Business Days calculator?
This calculator counts all calendar days including weekends and holidays. The Business Days calculator counts only Monday–Friday working days.

Related Tools