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
- Enter the start date and the end date.
- Tick the box if the end date should be counted as well.
- Read the number of days and the years, months and days breakdown.
- 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.
Related tools
- Age CalculatorFind your exact age in years, months and days from a date of birth, plus days to the next birthday.
- Unix Timestamp ConverterConvert Unix timestamps (seconds or milliseconds) to dates and dates back to timestamps.
- Percentage CalculatorWork out X% of Y, or what percent X is of Y, with the formula shown.
- Percentage Change CalculatorCalculate the percentage increase or decrease between an old and a new value.