ToolCabana

Date difference calculator

Compare calendar dates in years, months and days.

Favorites are saved in this browser. Find them in My favorites.

Date difference calculator

Instant results · processed in your browser
Update results automatically as you type or change settings. Turn off to run manually.Clear your input, files and result, and restore the default settings.

Your result appears here

Adjust the values to see your result automatically.

Com utilitzar Date difference calculator

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.

  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.

Què admet aquesta eina

Compare calendar dates in years, months and days.

Start date
Set this value for your task.
End date
Set this value for your task.
Count both start and end dates
Set this value for your task.

Límits i processament

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

Preguntes freqüents

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.