ExtraTools/date-calculator

DATE SPANS · DEADLINES · BUSINESS DAYS

DATE CALCULATOR · CALENDAR MATH

Calculate date differences and deadlines
Useful calculations and everyday tools.

Find the calendar interval between two dates or calculate a new date by adding and subtracting years, months, weeks, or days.

Use a separate business-day mode to move forward or backward across your selected workdays. You can configure the workweek, exclude holidays, and choose whether a date interval includes its ending date.

Calculations use Gregorian calendar dates without time-of-day or time-zone conversion. When a target month has no matching day number, its last day is used.

Simple mode hides the additional settings.
01 / DATE CALCULATORDates stay in your browser

Choose a calculation

Workweek and holidays
Use YYYY-MM-DD, up to 200 dates. These dates are excluded from workdays.

By default, the end date is excluded: March 1 to March 2 is 1 calendar day.

Dates, workweek settings, and holidays stay in your browser. Analytics records only that a calculation ran, never the form values.

Date differences, calendar spans, and business days

For a date span, the calculator reports total calendar days, calendar years, months and remaining days, plus weeks and days. You can include the end date, select workweek days, and exclude holidays you enter.

  • Calendar arithmetic preserves the day number when it exists in the target month; otherwise it uses that month’s final day.
  • Workweek days can be customized for your calendar. Holidays are entered manually and are not inferred from a country or server.
  • Business-day offsets can move forward or backward; the starting date does not count as one of the requested business days.

The calculator does not account for time of day, time zones, automatic public-holiday calendars, or legal deadline rules.

Frequently asked questions

How is the date difference counted?

The day count is the difference between calendar dates. The ending date is excluded by default: March 1 to March 2 is one day. The option to include the end date adds it to the total and workday counts.

Can the end date be earlier than the start date?

No. A date interval must start on or before its end. The order is validated; the result is not silently made negative or reversed.

How are months added to a date at month end?

If the target month has no matching day number, its final day is used. For example, January 31 plus one month becomes February 28, or February 29 in a leap year.

Are leap years handled?

Yes. The calculator uses Gregorian leap-year rules, including the exception for century years that are not divisible by 400.

What counts as a business day?

A selected weekday is a business day unless it appears in the holiday list. Monday through Friday are selected by default; no official holiday calendar is assumed.

How do I enter holidays?

Enter dates in YYYY-MM-DD format, one per line or separated by commas or semicolons. Duplicates are ignored. Holidays outside the calculated range have no effect.

How does the business-day offset work?

The starting date is not counted. The calculator moves forward or backward and counts only selected workdays, excluding listed holidays.

Can I set a workweek for another country?

Yes. Select the weekdays used by your workweek. For example, you can include Saturday and uncheck Friday. At least one weekday must remain selected.

Does this calculator handle times and time zones?

No. It works with calendar dates only, without times of day or time-zone conversion, so daylight-saving changes do not alter calendar-day counts.

Which calendar does it use?

It uses the proleptic Gregorian calendar used by standard browser date inputs. Historical local calendars and calendar-system transitions are not modeled.

What is the ISO week number?

It follows ISO 8601: weeks start on Monday, and week one contains the year’s first Thursday. An early January date can belong to the previous ISO week-year.

Are entered dates stored?

No. Calculations run in the browser. Form values are not saved or included in internal usage analytics.

Three date-calculation modes

Full mode is on by default. Simple mode uses Monday through Friday, ignores the holiday list, and keeps the standard end-exclusive date count.

  1. Date difference shows total days and a calendar span. The end date is excluded unless you check the option.
  2. Add / subtract applies years, months, weeks, and days. A day number that does not exist in a target month is clamped to that month’s last day.
  3. Business days moves by the requested number of checked weekdays. The start date is excluded.
  4. Choose your workdays and enter holidays as YYYY-MM-DD. The holiday list applies to workday calculations on this page.

Calculation could not be completed