# Date difference calculator

> Compare calendar dates in years, months and days.

[Open tool](https://www.toolcabana.com/to/date-difference) · [Dates and productivity](https://www.toolcabana.com/to/category/dates-and-productivity)

Tool ID: date-difference. Requested language: to. Description language: en. Complete guide translation: no; untranslated sections use English.

## Overview (en)

The Date difference calculator takes a start date and an end date and returns the gap as years, months and days, plus total days and total weeks to two decimals. By default the end date is not added as an extra day; switch on Count both start and end dates to include it. Times and time zones are not used.

## Supported tasks (en)

Compare calendar dates in years, months and days.

## Steps (en)

1. Adjust the values; an initial result is calculated from the defaults.
2. Change the basic settings or open Advanced mode to fine-tune the result.
3. Review and copy or download your result. Pause Live results to run manually. Sources or individual settings above 20,000 characters require an explicit run.

## Settings

- Start date (en; key: start; type: date)
- End date (en; key: end; type: date)
- Count both start and end dates (en; key: inclusive; type: checkbox)

## Limitations (en)

Use finite numbers, valid dates and the ranges shown by each control. Invalid values produce an error without a downloadable result.

## Privacy and connections (en)

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

## Questions (en)

### How many days are between two dates?

Enter both dates and read Total days. It counts calendar days from the start date to the end date without counting the end date. To count both dates, as many itineraries and leave forms do, turn on Count both start and end dates, which adds one day.

### Can the start date be later than the end date?

Yes. The calculator then returns a negative span. If the inclusive option is on with reversed dates, it subtracts one day instead of adding one, so the count stays consistent in either direction.

### How are total weeks calculated?

Total weeks is the total day count divided by 7, shown with two decimals. A 30-day span shows 4.29 weeks. The years, months and days line is a separate calendar breakdown, not derived from weeks.

### Where is my input processed?

This operation processes its source in your browser. Copy and download are explicit actions; source input is not saved in an account or history.

### What are the input limits?

Use finite numbers, valid dates and the ranges shown by each control. Invalid values produce an error without a downloadable result.

## Related tools

- [Add subtract days](https://www.toolcabana.com/to/date-calculator)
- [Random date generator](https://www.toolcabana.com/to/random-date)
- [Age calculator](https://www.toolcabana.com/to/age-calculator)
- [Business days calculator](https://www.toolcabana.com/to/business-days)
