# Date Difference Calculator

Calculate the difference between two dates in various time units

> Canonical page: https://test.elysiatools.com/en/tools/date-difference

- **Category:** Utilities

- **Keywords:** date, difference, calculator, time, duration, days, months, years, date difference

## Overview

Returns an exact calendar breakdown (years, months, days) plus approximate totals in weeks, months, and years. Weekday and business-day counts cover the interval from the start date up to but not including the end date; public holidays are not subtracted. Precision controls the rounded total values only.

## Inputs

- **Start Date** (date): Select start date
- **End Date** (date): Select end date
- **Include weekday breakdown** (checkbox)
- **Include business days calculation** (checkbox)
- **Decimal Precision** (number): Number of decimal places (0-6)

## When to use

- Calculating the exact number of days remaining until a project deadline or event.
- Determining the total elapsed time between two historical dates for record-keeping.
- Verifying the duration of a specific period, such as a subscription term or contract length.

## How it works

- Enter your desired dates into the 'Start Date' and 'End Date' fields.
- Toggle 'Include weekday breakdown' or 'Include business days calculation' if you need specific interval details.
- Adjust the 'Decimal Precision' (0–6) to control the granularity of the output.
- Review the generated JSON output to see the calculated duration across your selected units.

## Use cases

- Project Management: Calculate the total calendar days between project milestones to track schedule slippage.
- Financial Planning: Determine the exact number of days between two transaction dates to calculate interest or late fees.
- Personal Tracking: Measure the time elapsed between significant life events or anniversaries.

## Frequently asked questions

### Does this tool account for leap years?

Yes, the calculator automatically adjusts for leap years when calculating the difference between dates.

### What is the purpose of the Decimal Precision setting?

It allows you to define how many decimal places are shown in the result, which is useful if you are calculating fractional time units.

### Can I calculate the difference between dates across different years?

Yes, the tool supports date ranges spanning multiple years.

### How are weekday and business-day counts defined?

They cover [start date, end date): the start is included and the end is excluded. Business days exclude weekends; public holidays are not subtracted.

## Related tools

- [Working Days Calculator](https://test.elysiatools.com/en/tools/working-days-calculator): Calculate working days between two dates, excluding weekends and holidays
- [Zodiac Date Calculator](https://test.elysiatools.com/en/tools/zodiac-date-calculator): Calculate zodiac sign based on birth date and show date ranges for all zodiac signs
- [Week Number Calculator](https://test.elysiatools.com/en/tools/week-number-calculator): Calculate the week number of a date within a year. Supports different week number calculation standards (ISO 8601, US standard, etc.) for project management, time planning, and data analysis.
- [Age Calculator](https://test.elysiatools.com/en/tools/age-calculator): Calculate age from birth date in years, months, days, and total time units
- [Date Adder](https://test.elysiatools.com/en/tools/date-adder): Add or subtract time periods from a date (years, months, days, hours, minutes, seconds)
- [Day of Year Converter](https://test.elysiatools.com/en/tools/day-of-year-converter): Convert any date to its day-of-year number (1-366) and back, with ISO week number, leap-year check, and days remaining in the year.
- [Lewis Structure & VSEPR Predictor](https://test.elysiatools.com/en/tools/lewis-structure-and-vsepr-predictor): Predict the Lewis dot structure, valence electrons, central atom, lone pairs, and VSEPR geometry (linear / trigonal / tetrahedral / …) of a covalent molecule.
- [Nepali Bikram Sambat & Thai Solar Calendar Bridge](https://test.elysiatools.com/en/tools/nepali-bikram-sambat-and-thai-solar-calendar-bridge): Convert any date between Gregorian (AD), the Nepali Bikram Sambat (BS) calendar, and the Thai solar (Buddhist Era, BE) calendar. Shows the BS month-length table for the year and explains the algorithm.

## Samples

- [Android Date & Time Java Samples](https://test.elysiatools.com/en/samples/android-datetime-java): Android Java date and time examples including getting current time, formatting dates, and parsing date strings
- [Android Date & Time Kotlin Samples](https://test.elysiatools.com/en/samples/android-datetime-kotlin): Android Kotlin date and time examples including getting current time, formatting dates, and parsing date strings
- [Date & Time Samples](https://test.elysiatools.com/en/samples/date-time): Collection of date and time strings in various formats for validation testing
- [macOS Date Time Objective-C Samples](https://test.elysiatools.com/en/samples/macos-datetime-objectivec): macOS Objective-C date and time examples including NSDate, NSDateFormatter, NSCalendar, and time intervals

## Related content

- [Date and Time Normalization and Deadline Calculation](https://test.elysiatools.com/en/hubs/date-time-scheduling): Turn ambiguous or mixed-format date inputs into validated, timezone-aware, business-ready timestamps, deadlines, and duration facts.
