A short companion for Date Calculator: when it is useful, what it expects, and what to check before using the result.

What it does

Two calculators in one page. The difference mode measures the gap between two dates in calendar years, months and days as well as total days, weeks, months and years, with an option to include the end date and to count business days only. The add/subtract mode shifts a date by a number of days, weeks, months, years or business days and reports the weekday, ISO week and day of the year.

Use the tool

Open Date Calculator, add the input the tool asks for, run it, and check the output before using it elsewhere.

Input and output

  • Input: text.
  • Output: text.
  • Category: Math.

Privacy and processing

Processing happens locally in your browser. This tool does not upload the input to ilham.dev.

Questions

Why is the calendar difference not just the total days?

A month is not a fixed number of days, so 31 Jan to 1 Mar is one month and one day, not 29 days. The calendar figure keeps the day of the month and clamps to the last valid day when a month is shorter, which is what people mean by a one-month difference.

Does including the end date change the calendar difference?

No. Include the end date adds one day to the total-day counts, which is what you want for a stay that starts and ends on the listed days, but the years/months/days figure still describes the gap between the two dates themselves.

How are business days counted?

Weekends (Saturday and Sunday) are skipped. No public-holiday calendar is applied, because holidays differ by country and year, so subtract them yourself if it matters.

What happens when I add a month to 31 January?

The day clamps to the last day of the target month, so 31 Jan + 1 month is 28 February, or 29 February in a leap year. Adding one month twice is not the same as adding two months, which is why the page does it in one step.

Related guide

For broader background, see Dates, Timestamps, and Time Zones.