UtilityKit

500+ fast, free tools. Most run in your browser only; Image & PDF tools upload files to the backend when you run them.

Date Difference

Days, months and years between two dates

About Date Difference

The Date Difference Calculator measures the exact gap between any two calendar dates and displays it simultaneously in days, weeks, months, years, hours, and minutes — so you always have the unit your document or formula actually needs. Project managers timing sprint windows, lawyers counting statutory notice periods, students counting days to an exam, and event planners ticking down to a launch all need a quick, unambiguous duration that a plain calendar simply can't provide. The tool is direction-aware: if the end date precedes the start date, the result is clearly negative so you know you're looking backwards. An inclusive/exclusive end-date toggle handles the difference between 'notice on day 1, expires day 30' versus 'notice expires after the 30th day'. Decimal-year output supports tenure and interest-period math.

Why use Date Difference

Multi-unit Output

Days, weeks, months, years, hours, and minutes are all shown simultaneously from a single date pair. You never have to run a second calculation to convert between units, which eliminates the copy-paste errors that occur when you use one tool per unit.

Inclusive vs Exclusive Toggle

Legal contracts, rental agreements, and project timelines often disagree on whether the start or end date itself is counted. A single toggle switches between the two counting conventions so you match the exact definition your document uses.

Past or Future Aware

The tool accepts dates in any order and uses the arithmetic sign to show direction. A negative result means the end date is before the start date, which is useful for calculating how long ago something happened or how far back a deadline was missed.

Working Days Hint

A quick weekday count estimate appears alongside the calendar-day total. While it does not remove public holidays, it gives a practical ballpark for project scheduling and notice periods where weekends are excluded from the count.

Decimal Years

Financial and HR calculations often need duration as a decimal fraction of a year — for example, 1.75 years for an 18-month contract. This view is displayed alongside the full breakdown so you can plug it directly into interest-rate or tenure formulas.

No Account Needed

Open the tool, type two dates, read the answer, close the tab. There is no sign-up flow, no email required, and no data retained between sessions. It is designed to be the fastest possible path from question to answer.

How to use Date Difference

  1. Enter the start date in the YYYY-MM-DD date picker or type it directly
  2. Enter the end date the same way — either order is accepted, but negative results indicate the end precedes the start
  3. Toggle inclusive or exclusive end-date counting depending on whether the final day should be included in the total
  4. Read the multi-unit duration breakdown: days, weeks, months, years, and hours all displayed at once
  5. Check the decimal-years value for tenure, contract duration, or interest-period calculations
  6. Copy the specific unit you need — days, weeks, or the ISO duration string — for your spreadsheet or document

When to use Date Difference

  • Counting the exact number of days in a lease, employment contract, or notice period
  • Calculating how many days remain until a project deadline, product launch, or exam
  • Verifying a statutory period such as a 90-day warranty, a 30-day return window, or a 180-day visa stay
  • Determining an employee's tenure in years and months for a service award or severance calculation
  • Measuring the duration of a historical event or the time since a milestone date
  • Computing the interest period in decimal years for a bond, loan, or savings calculation

Examples

Project span

Input: Start: 2025-01-15, End: 2026-05-07

Output: 1 year, 3 months, 22 days = 477 days = 68 weeks 1 day

Notice period

Input: Start: 2026-05-07, End: 2026-08-05

Output: 0 years, 2 months, 29 days = 90 days exactly

Decade gap

Input: Start: 2010-06-01, End: 2026-05-07

Output: 15 years, 11 months, 6 days = 5,820 days = 139,680 hours

Tips

  • For contracts, set the toggle to inclusive so both the signing day and the expiry day are counted in the total
  • Use ISO YYYY-MM-DD dates to avoid locale-based parsing surprises when sharing a link
  • Swap start and end dates if you want a positive number — the magnitude stays identical
  • Copy the total-days field for use in spreadsheet DATEDIF or date-arithmetic formulas
  • Pair with the Timezone Converter when your two dates span a DST boundary and hours matter

Frequently Asked Questions

Does the end date count in the total days?
It depends on the toggle. Exclusive counting (the default) does not include the end date, which matches how most programming languages and spreadsheets count intervals. Inclusive counting adds one day and is used in legal and rental contexts where both the first and last days are billable.
What is the difference between calendar days and business days?
Calendar days count every day including weekends and public holidays. Business days exclude Saturdays and Sundays — and sometimes public holidays — because work is not expected on those days. The tool shows a calendar-day total and a rough weekday estimate but does not remove country-specific holidays.
Why does months-and-days not equal total days divided by 30?
Calendar months have between 28 and 31 days, so dividing by 30 introduces systematic errors. The tool counts whole calendar months that have elapsed, then adds the remaining days, which matches the way anniversary dates and contract expirations are legally computed.
Can I enter dates in MM/DD/YYYY format?
The date picker accepts any format your device's native picker supports. When typing manually, ISO YYYY-MM-DD format is strongly recommended because MM/DD and DD/MM are ambiguous in dates like 04/05/2026, which is April 5 in the US and May 4 in Europe.
Does this handle dates before 1970 or after 2100?
Yes. The calculation uses proleptic Gregorian calendar arithmetic rather than Unix timestamps, so it handles dates from year 1 through the far future. Historical dates before 1582 (when the Gregorian calendar was adopted) are treated as if the calendar had always applied.
How are time zones treated when I include hours?
The tool operates on calendar dates and, when hours are shown, assumes both dates are in the same time zone. Cross-timezone hour differences require a dedicated timezone converter because the offset gap must be known.
Why is the result negative?
A negative result means the end date you entered comes before the start date. The magnitude of the number is still the correct duration — just flip the sign or swap the dates if you want a positive output.
Can I get the result in only hours or only minutes?
The hours and minutes fields appear in the full breakdown row. You can copy just those fields. For very long durations, hours are shown as a large integer (e.g., 11,400 hours for a 475-day span) which you can then use in formulas directly.

Explore the category

Glossary

Calendar Day
Any day on the standard calendar including weekends and holidays. Calendar days are the simplest unit for measuring a date gap and form the basis for all other time-unit conversions.
Inclusive Date Range
A range where both the start and end dates are counted as part of the total. For example, January 1 to January 3 inclusive is 3 days, whereas exclusive counting gives 2 days.
ISO 8601
An international standard for representing dates and times in the format YYYY-MM-DD. Its unambiguous ordering eliminates the US vs European day/month confusion that causes date parsing errors.
Epoch Time
A count of seconds (or milliseconds) since January 1, 1970 00:00:00 UTC. Many programming environments internally convert calendar dates to epoch values before subtracting them to find a duration.
Business Day
A weekday (Monday through Friday) that is not a public holiday. Business-day counts are commonly required in legal notice periods, financial settlement windows, and project scheduling.
Duration
The length of time between two points. In ISO 8601 notation, a duration is expressed as P followed by years (Y), months (M), weeks (W), and days (D) — for example P1Y3M22D for one year, three months, and 22 days.