HandyBench

Date Difference Calculator

Days, weeks and months between two dates.

365
Total days
52
Total weeks
0
Years
11
Months
30
Days

How to use the Date Difference Calculator

  1. 1 Pick a start date and an end date.
  2. 2 See the difference in days, weeks, months and years.
  3. 3 Toggle whether the end date is included.

What the calculator reports

Pick a start and end date and the tool returns the total number of days, the number of whole weeks, and a calendar breakdown in years, months and days. Dates are read as calendar dates in your own time zone, so the result does not shift by a day and daylight saving changes do not matter. Total days is the number of calendar days between them. The weeks figure is the total divided by 7, rounded down, so leftover days are not shown in that box. The breakdown counts whole calendar months from the start date (dropping one if the end day-of-month has not been reached), then shows the remaining days.

Worked examples

StartEndTotal daysY / M / D
2024-01-012024-12-31365 (366 with end date included)0 / 11 / 30 (1 / 0 / 0 with end date included)
2024-02-012024-03-0129 (2024 is a leap year)0 / 1 / 0
2026-01-012026-12-253580 / 11 / 24

The first row is a good illustration of the include-end-date option. Counting from 1 January to 31 December gives 365 days elapsed, but a project that runs on both of those dates occupies 366 calendar days. The checkbox adds that one day to the totals, and the years, months and days breakdown is measured through the end of the end date too, so the same span reads 1 year, 0 months, 0 days.

Inclusive or exclusive?

  • Exclusive (default). Counts the nights or the gap between two dates. Monday to Wednesday is 2 days. Use this for ages, notice periods and "days until" questions.
  • Inclusive. Counts every date on the calendar, so Monday to Wednesday is 3 days. Use this for hotel-style stays billed per day, attendance periods or sprints where both end dates are working days.

The tick box changes every figure in the same way: total days and weeks gain the extra day, and the years, months and days breakdown is calculated up to and including the end date. For example, 1 January to 31 January shows 30 days (0 months, 30 days) by default and 31 days (1 month, 0 days) with the end date included.

Limits to be aware of

  • The tool counts every calendar day, with no weekend or holiday exclusion, so it will not give working days.
  • If the end date is earlier than the start date, the tool swaps them and shows a note, so total days, weeks and the years/months/days breakdown all describe the span between the two dates as positive figures.
  • Months are not a fixed size. 31 January to 28 February counts as 0 months 28 days in this method, while many spreadsheet functions give different answers. When a contract defines "a month", follow its wording.

For a person's age with a next-birthday countdown, use the age calculator. To convert a duration into seconds or compare epoch values, see the timestamp converter.

Examples

  • ▸ 1 Jan 2024 to 31 Dec 2024 is 365 days and 0 years, 11 months, 30 days (366 days and 1 year, 0 months, 0 days with the end date included).
  • ▸ 1 Feb 2024 to 1 Mar 2024 is 29 days because 2024 is a leap year.

Frequently asked questions

How are months and years counted?

The tool counts complete calendar months and years between the dates, then shows the leftover days, using real calendar lengths.

What does "include the end date" do?

When enabled, both the start and end dates count, adding one day to the total days and weeks and extending the years, months and days breakdown to match — useful for inclusive spans like hotel nights or rental periods.

Can it count business days only?

No, it counts every calendar day between the two dates. For working-day totals you would need to subtract weekends and any holidays separately.

Is the end date counted by default?

No. By default the tool counts the gap between the dates, so Monday to Wednesday is 2 days. Tick "Include end date" to count both dates, which makes it 3.

What if the end date is before the start date?

The tool swaps the two dates and shows a note, so the total days, weeks and the years, months and days breakdown all describe the span between them as positive figures.