Date Calculator

Find the duration between two dates or add/subtract days to find a date.

Difference between dates

Add/subtract days

What a date calculator does

Calendar arithmetic is one of those tasks that feels like it should be easy and reliably is not. Months have different lengths, leap years appear irregularly, and "three months from 30 November" has no obvious answer. This calculator handles the two common cases in whole days: the gap between two dates, and shifting a date forward or backward by a number of days.

Key takeaways

  • Date difference counts the days between two dates, exclusive of the start date by default.
  • This calculator counts and adds whole calendar days, which avoids the ambiguity of adding months.
  • Leap years must be counted individually - 365-day arithmetic drifts.
  • For working days rather than calendar days, use the business days calculator.
  • Dates here are calendar days, so time zones and daylight saving do not change the result.

How to use this date calculator

  1. To find a difference, enter both dates. The result gives the total in days, with the same span in weeks and approximate months and years.
  2. To shift a date, enter the starting date and the number of days. A negative number subtracts.
  3. Check the weekday shown with any resulting date - it is often the detail that actually matters for planning.

How the arithmetic works

Difference between two dates

Both dates are converted to a day number - a count of days from a fixed reference point - and subtracted. This sidesteps month lengths and leap years entirely, because the day numbering already accounts for them.

Difference in days = day number of end date - day number of start date

Adding days or weeks

Straightforward: add the number of days (weeks × 7) to the day number and convert back to a calendar date.

Why this calculator does not add months

Adding months needs a convention. Add one month to 31 January and the result would be 31 February, which does not exist; some software clamps it to 28 February, some rolls it over to 3 March. To avoid that ambiguity this calculator works in days only. If you need a month-based deadline, count the days to the date you mean and check the weekday shown.

Months are not a fixed number of days. The "In months (approx.)" figure divides the day count by 30.44, close to the average month length (365.25 ÷ 12 = 30.4375), so it is an estimate rather than a count of calendar months.

Worked examples

Days between two dates

  • From 1 January 2026 to 14 September 2026
  • January 30 + February 28 + March 31 + April 30 + May 31 + June 30 + July 31 + August 31 + September 14
  • Total = 256 days, which is 8 months and 13 days

Adding a duration

  • 14 September 2026 + 90 days = 13 December 2026, a Sunday
  • 14 September 2026 - 30 days = 15 August 2026, a Saturday
  • 28 February 2028 + 1 day = 29 February 2028 (2028 is a leap year)

Days in each month

MonthDaysMonthDays
January31July31
February28 or 29August31
March31September30
April30October31
May31November30
June30December31

The old mnemonic still works: thirty days hath September, April, June and November; all the rest have thirty-one, excepting February alone.

Leap year rules

A leap year adds 29 February. The Gregorian rule is:

  1. A year divisible by 4 is a leap year,
  2. unless it is divisible by 100, in which case it is not,
  3. unless it is also divisible by 400, in which case it is.
YearDivisible by 4?By 100?By 400?Leap year?
1900YesYesNoNo
2000YesYesYesYes
2024YesNo-Yes
2026No--No
2100YesYesNoNo

This rule gives an average year of 365.2425 days, which is within half a minute of the true solar year.

Common uses

  • Contract and notice periods - when does a 90-day notice actually end?
  • Payment terms such as net 30 or net 45 from an invoice date.
  • Project planning and deadline tracking.
  • Visa and travel rules, particularly rolling windows such as 90 days in any 180.
  • Warranty and return windows.
  • Countdowns to an event or a launch.

If weekends and holidays should be excluded, the business days calculator is the right tool. For age specifically, use the age calculator, which applies the years-months-days convention.

Frequently Asked Questions

How do I calculate the number of days between two dates?

Enter both dates and the calculator converts each to a day number and subtracts them, which automatically accounts for varying month lengths and leap years. From 1 January 2026 to 14 September 2026, for example, is 256 days.

How do I add days to a date?

Enter the starting date and the number of days to add. The calculator returns the resulting calendar date along with its day of the week. Adding 90 days to 14 September 2026 gives 13 December 2026.

Can I add months or years?

Not directly: this calculator adds days. Adding a month to 31 January has no single answer, because there is no 31 February, so count the days to the date you mean instead. For an age in years, months and days, use the age calculator.

Does the calculator include both the start and end date?

The difference is counted exclusive of the start date, which is the usual convention - from 1 January to 2 January is one day. If your context counts both endpoints, such as some contractual notice periods, add one to the result.

How do I calculate working days instead of calendar days?

Use the business days calculator, which excludes Saturdays and Sundays and lets you account for public holidays. Calendar-day arithmetic on this page counts every day equally.

What is a leap year and how does it affect the result?

A leap year has 366 days, adding 29 February. Years divisible by 4 are leap years except centuries not divisible by 400, so 1900 was not but 2000 was. Any date range spanning a 29 February is one day longer than a naive calculation suggests.

Can I calculate a date in the past?

Yes. Enter a negative number of days to shift a date backwards, or enter an earlier date as the second date to measure a difference into the past. The difference is always shown as a positive number of days.

Why do date calculations sometimes differ by one day?

Usually because of a boundary convention - whether the start date is counted - or because of time zones, where the same instant falls on different calendar dates in different places. This calculator works on calendar dates, so it gives the same answer in every time zone. For contractual deadlines, always confirm which convention the contract uses.

Related Calculators