All Tools

Date Difference Calculator

Calculate the number of days, months, or years between two dates. Perfect for finding age, project duration, or time remaining.

Date Difference

Difference

  • years:0
  • months:0
  • weeks:0
  • days:0
  • hours:0
  • minutes:0
  • seconds:0

Business Days

0

Weekdays excluding weekends


Date difference calculator

Formula

textdifference=textendDate−textstartDate\\text{difference} = \\text{endDate} - \\text{startDate}

The result is expressed as years, months, and days for human readability, with a total days count for precise calculations.

Worked example

Calculate the difference between 1 January 2020 and 15 August 2025:

  1. From 1 January 2020 to 1 January 2025 = 5 years
  2. From 1 January 2025 to 15 August 2025 = 7 months and 14 days
  3. Total: 5 years, 7 months, 14 days
  4. Total days: 2,052 days

How to use

  1. Enter the start date
  2. Enter the end date
  3. Click "Calculate" to see the difference

Counting conventions

  • Calendar days include all days including weekends and holidays
  • Business days exclude weekends (Saturday and Sunday) but include public holidays unless specified
  • Weekends count as 2 days per week (Saturday and Sunday)

Common use cases

  • Calculating project timelines and deadlines
  • Determining age at a specific date
  • Planning events and milestones
  • Legal and contractual period calculations
  • Financial calculations involving interest periods

FAQ

Can I calculate negative differences? No, the end date must be after the start date. Swap them if you need the reverse calculation.

How do I exclude weekends? Use the business days calculator instead.

Can I calculate in months only? No, the result always includes years, months, and days for accuracy. Multiply years by 12 and add months for a total months figure.

What about leap years? The calculator handles leap years automatically. 29 February is counted correctly in leap years.

Other related tools