Change language

Date and time

Subtract days, weeks, months or years from a date

Find out what date it was a given period before a reference date.

Published by SolucionesAhora.com How we verify

Calculator inputs

Leave empty to start from today

Results

Enter your values and press “Calculate” to see the result.

Free, no sign-up! What if you could do this without a calculator? A five-minute game with challenges, lives and points. It clicks even when you cannot be bothered.

In short

What it calculates
Find out what date it was a given period before a reference date.
Formula used
Earlier date = start date − amount × unit
Example
Example 1: 2026-03-15 − 15 days = 2026-02-28

Subtract days from a date

Use it to work out when to start something when the deadline is fixed: subtract the time you need and you get the start date.

It also helps reconstruct past dates.

How it works

The calculation mirrors addition: it moves back along the real calendar, respecting the length of each month and leap years.

Formula

Earlier date = start date − amount × unit

Worked example

Example 1: 2026-03-15 − 15 days = 2026-02-28

2026-03-31 − 1 month = 2026-02-28, because February has no 31st

Example 2: 2026-01-10 − 3 weeks

3 weeks = 21 days
2026-01-10 − 21 days = 2025-12-20, a Saturday

Crossing into the previous year is no problem: December 2025 has 31 days and they are counted one by one.

Explanation

Planning backwards from a deadline

It is the natural way to organise any project with a fixed delivery. If the wedding is on 15 June and invitations must go out eight weeks earlier, subtracting gives the date they must be printed by. Chaining subtractions builds a full schedule from the end backwards.

Notice periods and legal deadlines

Notice of resignation, contract termination or non-renewal of a tenancy is counted backwards from the effective date. Delivering one day late can trigger a penalty or the automatic renewal of another full period, so count the exact days rather than trusting 'a month before'.

Expiries and renewals

Renewal notices for subscriptions, insurance and domains arrive with little warning, or not at all. Subtracting the notice period from the renewal date gives the last working day to cancel before another year is charged.

When the subtraction crosses the year

Subtracting ninety days from 15 February lands in mid-November of the previous year. The calculation handles it automatically, including the leap year adjustment.

Frequently asked questions

Can it work out a start date?

Yes. If delivery is 30 June and you need 45 days of work, subtract 45 days to see when to begin.

Can the result fall in another year?

Yes, with no problem. The calculation crosses year boundaries correctly.

How do I work out my notice deadline?

By subtracting the notice period from the effective date. For fifteen calendar days, subtract fifteen from the date you want it to take effect.

Is subtracting a month the same as subtracting 30 days?

No. Subtracting a month goes to the same day of the previous month, or its last day if that date does not exist: 31 March minus one month is 28 February. Subtracting 30 days counts exact days and gives 1 March in a non-leap year.

Does it count weekends and public holidays?

Yes, it subtracts calendar days. If you need working days, remove the Saturdays, Sundays and holidays of your own calendar separately.

How do I see which weekday it was?

The result shows it next to the date. Going back 21 days from 2026-01-10 lands on Saturday 2025-12-20.

How do I work out an approximate start date?

Subtract the known period from the end date. For medical dates use the dedicated tool, which applies the clinical rules instead of a plain subtraction.

Sources and references

The formula behind this calculator is not ours. These are the sources it comes from, in APA 7 format, in case you want to go to the original or cite them in your own work.

  1. International Organization for Standardization. ISO 8601: Date and time format. https://www.iso.org/iso-8601-date-and-time-format.html https://www.iso.org/iso-8601-date-and-time-format.html The international standard for writing dates and counting days, weeks and months unambiguously.
  2. Reingold, E. M., & Dershowitz, N. (2018). Calendrical Calculations: The Ultimate Edition. Cambridge University Press. https://doi.org/10.1017/9781107415058 https://doi.org/10.1017/9781107415058 The reference algorithms for adding and subtracting Gregorian dates, leap years included.

Need to calculate something else?

These tools are often used alongside this calculator.

Add days

Get the resulting date after adding a period to a starting date.

Age

Work out your age in years, months, days, weeks and hours from your date of birth.

Working days

Count business days while excluding weekends and public holidays.

Hours worked

Work out effective working time after breaks, night shifts included.

Days until

Count the days remaining (or elapsed) between today and the date you choose.