DoesWhatAnswersSlangEmojisCalculatorsTriviaPlayBlog

Trivia Questions and Weird Facts

Math

Date Calculator

Add or subtract calendar years, months and days from a starting date, or switch tabs to count the interval between two dates. The result includes the weekday and explains how the calculator handles short months.

Loading the calculator. It runs in your browser, so JavaScript needs to be on.

How to use the Date Calculator

  1. Choose Add time or Subtract time and enter the Start date.
  2. Enter whole numbers in Years, Months and Days, leaving unused fields at 0. The selected tab controls the direction.
  3. Read the Resulting date, weekday and Calendar days moved. Years and months are applied together before the day offset.
  4. To count an interval instead, choose Days between dates, enter Start date and End date and optionally check Include both start and end dates.

The formula

First combine the year and month offsets into total months = 12 × years + months. Move the starting date by that many months in the selected direction, clamping its day to the last day of the target month. Then move by the requested calendar days. Elapsed days = end date - start date; an inclusive forward count adds 1.

Worked example

Add 0 years, 1 month and 0 days to January 31, 2026. February has no 31st, so the result is 2026-02-28, a Saturday, and 28 calendar days have passed. Subtracting one day from March 1, 2024 returns 2024-02-29 because 2024 is a leap year.

The order of operations affects month ends

Years and months are combined into a single calendar-month move. The original day is retained if possible, otherwise it becomes the target month's last day. Days are moved afterward. Adding one month and one day to January 31, 2026 therefore gives March 1, 2026. It is different from adding a fixed 31-day block and should be used only when calendar months match your question.

Elapsed days versus inclusive days

An ordinary difference excludes the start date. February 28 to March 1, 2024 spans two days because February has 29 days that year. Checking both endpoints makes the count three: February 28, February 29 and March 1. Identical dates have zero elapsed days or one inclusive day. A reversed ordinary interval is negative; an inclusive interval asks for the earlier date first.

Calendar days include every weekday

Saturday, Sunday and public holidays count in this calculator. Adding 10 days always moves 10 calendar dates, even if several are days off. Use Working Days Calculator when the question is about business days. Offsets must be nonnegative whole numbers; use Subtract time to move backward. Results stay within years 0100 to 9999, and invalid dates such as February 30 are rejected.

Date Calculator questions

How do I add 90 days to a date?

Choose Add time, set Years and Months to 0 and Days to 90. The output counts calendar days, including weekends.

What happens when I add a month to January 31?

The result is February's last day, February 28 in an ordinary year or February 29 in a leap year.

Are the start and end dates both counted?

Only when Include both start and end dates is checked. The default is elapsed days, which excludes the start date.

Can adding and then subtracting one month return a different date?

Yes. Month-end clamping can lose the original day: January 31 plus one month is February 28, and one month back from there is January 28.

Related calculators