AppAdd

Date Difference Calculator

Count the days between two dates. The end date is not counted unless you include it.

Processed in your browser. Nothing you enter is uploaded.

Convention: the end date is not counted by default (Jan 1 to Jan 2 is 1 day). Tick the box to count both the start and the end date. If the end date is before the start date, the dates are swapped. Calendar dates only: no time zones or clock times are involved.

How to use it

  1. Enter the start date and the end date.
  2. Tick the box if the end date should be counted as well.
  3. Read the number of days and the years, months and days breakdown.
  4. Copy the result.

Example

Consecutive days
Input:2024-01-01 to 2024-01-02
Result:1 day (2 days when the end date is included)

What does Date Difference Calculator do?

Date Difference Calculator counts the days between two dates and breaks the span into years, months and days.

How does Date Difference Calculator work?

It counts calendar days with date-fns, so daylight saving time never adds or removes a day. The calculation runs in your browser.

Is my data uploaded?

No. The dates you enter stay in your browser.

Which formats and inputs does Date Difference Calculator support?

Inputs: A start date and an end date; An option to include the end date. Output: The number of days, the years-months-days breakdown, and the weeks and days.

What are the limits and limitations of Date Difference Calculator?

Limits: supported years 1000 to 9999. The end date is not counted unless you include it. If the end date is before the start date, the two are swapped.

More questions

Is the end date included?

Not by default: Jan 1 to Jan 2 is 1 day. Tick 'Include the end date' to count both dates.