Date Add/Subtract Calculator

Share:
Converters & Units

Date Add/Subtract Calculator

Date arithmetic + day of week

By Checked against sources by Last reviewed CALENDAR CONVERTER DATE UTILITY
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

Date Add/Subtract Calculator

Base date + operation
Amount to add or subtract
Result
—
ISO 8601 format
—
Day of week
—
From today
—
Pick a base date + enter how much to add/subtract
Advertisement
After results · AD-W1Responsive · Post-tool — peak engagement

How to use the Date Add/Subtract Calculator

Pick your base date

The starting point for the calculation. Default: today's date in Singapore (UTC+8), the calendar RECATOOLS runs on — so a reader in New York late in the evening already sees tomorrow. Click the date field to use your browser's native date picker. ISO 8601 format used internally; display follows your browser locale.

Choose Add or Subtract

Add: result is in the future relative to base date (e.g., "1 year from contract start"). Subtract: result is in the past (e.g., "30 days before deadline").

Enter years/months/weeks/days to shift

Combine any units, as whole numbers. Example: 1 year + 6 months + 2 weeks = shift base date by that total. Most use cases need only one unit (e.g., 30 days, or 1 year). Leave unused fields at 0. Fractions such as 1.5 months are refused rather than rounded, because half a month has no calendar meaning.

Read the result

Headline shows the resulting date in friendly format with day of week. Stats below show ISO 8601 format (for technical use), day of week (helpful for scheduling), and days from today, where today is the date in Singapore. Use ISO format for copying into spreadsheets, databases, or contracts.

Advertisement
After how-to · AD-W2Responsive

Date arithmetic — the simple math that trips up software + spreadsheets

Adding or subtracting time periods from dates sounds trivial — and for short durations + simple units (days), it usually is. The complexity arrives with months, years, leap years, and month-end edge cases. "Add 1 month to January 31" — what's the answer? Some systems say February 28 (last day of next month); others say February 31 = March 3 (overflow). JavaScript's native Date — whose rule this tool follows for its headline answer — takes the overflow route: the surplus days run on, so January 31 plus a month is 3 March. PostgreSQL, Java, .NET and Python's dateutil take the other one and clamp to 28 February. That is not a rounding difference; it is three days, on the kind of date that ends a notice period. For most everyday calculations, the differences are invisible — but for contract math, financial calculations, and visa/permit deadlines, it pays to verify.

The month-end edge case

"Add 1 month to date X" is well-defined only when the resulting month has the same or more days than the source. Two conventions are in use and they give different answers. Clamping says Jan 31 + 1 month is 28 February, because that is the last day of the month you landed in; this is what PostgreSQL's interval arithmetic, Java's LocalDate.plusMonths, .NET's AddMonths and Python's dateutil do. Overflow says the surplus days run on into the following month, so Jan 31 + 1 month is 3 March. This tool overflows, because that is JavaScript's rule (ECMA-262 MakeDay), and so do March 31 + 1 month (1 May, not 30 April) and May 31 + 1 month (1 July, not 30 June). Whenever that happens the tool says so on the result and shows you the clamped date as well, so you can take the one your agreement specifies. For legal documents: do not assume the law settles it. Singapore's Interpretation Act 1965 says only that "month" means calendar month (section 2); it does not say what one month after 31 January is. When precision matters, the agreement should name the date or the rule, and the relevant jurisdiction's law governs if it does not.

Adding "1 month" to January 31 lands on 3 March in this tool, and on 28 February under the clamping convention. The tool flags the difference whenever it arises — but if the date carries money or a legal obligation, the agreement should say which rule applies.

Why date math matters for ASEAN business

Common date arithmetic use cases across ASEAN markets: Employment contracts — notice periods, probation end dates, annual leave entitlement reset dates. Lease agreements — start + end dates, renewal notification deadlines. Visa + work permit math — pass and visa expiry dates, and the renewal windows that run back from them. Banking + finance — loan maturity dates, FD rollover dates, mortgage amortisation. Contract law — 30-day cure periods, 90-day notice provisions, statutory limitation periods. Cross-border business adds complexity because each country's law, not the software, decides what "1 month" means. Best practice for cross-border contracts: specify exact dates (Dec 31, 2026) rather than relative durations ("1 year after contract start") to eliminate ambiguity.

The ISO 8601 advantage

ISO 8601 (YYYY-MM-DD) is the unambiguous international date format. Why use it: (1) sorts correctly as plain text — 2025-04-03 sorts before 2025-12-01 alphabetically; (2) unambiguous across cultures — no debate about whether "03/04/2025" means March 4 or April 3; (3) it is the form RFC 3339 profiles for dates on the internet, and the value an HTML date field hands to a page. This tool reads and writes ISO 8601 dates (years 0001 to 9999) and displays both ISO + friendly formats. Copy the ISO string when entering dates into spreadsheets, databases, or technical documents. Use the friendly format ("Wednesday, 3 April 2025") for human-readable communications.

Month-end overflow, ISO 8601, and where Excel and JavaScript disagree

01

Date math sounds trivial but month lengths, leap years and time zones all get in the way. This tool counts whole calendar days, so daylight saving and your device's time zone cannot move a result.

02

Jan 31 + 1 month = 3 March here (2 March in a leap year), not 28 February: JavaScript overflows the surplus days into the next month. The tool shows the clamped alternative alongside it.

03

ISO 8601 (YYYY-MM-DD) is the unambiguous global standard. Use for cross-border contracts + technical work.

04

Common contract use: 30 days notice = base + 30 calendar days. Working day variant uses Working Days Calculator.

05

Pregnancy due date: the conventional estimate is 280 days from the first day of the last menstrual period, which clinicians then check against an early ultrasound.

06

For loan + finance math, common: amortisation period (years), FD term (months), maturity (specific date).

07

Different jurisdictions handle "1 month" slightly differently in contract law — specify exact dates in cross-border contracts.

08

PostgreSQL and JavaScript disagree at month ends: PostgreSQL clamps March 31 + 1 month to April 30, JavaScript overflows it to 1 May. A database and a script can give different answers for the same contract date.

09

Leap-year rule: divisible by 4, except century years not divisible by 400. 1900 not leap; 2000 was; 2100 won't be.

10

For business-day math (excluding weekends + holidays), use Working Days Calculator instead.

Frequently Asked Questions

  • Uses standard JavaScript Date behaviour, which OVERFLOWS rather than clamps: adding "1 month" to a date whose target month is shorter carries the surplus days into the following month. Jan 31 + 1 month = 3 March; March 31 + 1 month = 1 May. This does NOT match PostgreSQL, Java, .NET or Python's dateutil, which clamp to the last day of the target month — so they disagree on exactly these dates, and the tool shows you the clamped date as well whenever you hit one. Which one a contract means is for the contract, or the law that governs it, to say.

  • Yes. Adds + subtracts correctly across leap years. Feb 29 anniversaries follow the same overflow rule: 29 February 2024 + 1 year gives 1 March 2025, not 28 February. Jurisdictions and institutions differ on which they mean for a leap-day birthday, so check against the rule that governs your case.

  • Yes. Years and months are combined into one count of months and applied first; weeks and days are then added as days. So 1 year + 6 months + 2 weeks = base + 18 months, then + 14 days. The order matters at month ends: 31 January 2026 + 1 month + 1 day is 4 March here (1 March under the clamping rule), whereas adding the day first would give 1 February + 1 month = 1 March. Months-then-days is the order PostgreSQL documents for its own date intervals.

  • This tool adds CALENDAR days only. For "5 working days from today" calculations excluding weekends + ASEAN public holidays, use the Working Days Calculator. Common confusion: "30 days notice" in contracts is usually calendar days (this tool); "5 working days SLA" is business days (other tool). Verify which interpretation your contract requires.

  • Employment notice: today + 30 days = last working day. Lease expiry: lease start + 2 years = renewal deadline. Visa validity: visa start + 1 year = expiry. Loan maturity: loan disbursement + 5 years = maturity. Contract anniversaries: contract date + N years = renewal/review date. Pregnancy due date: last menstrual period + 280 days. Permit/license renewal: previous renewal + 2 years. Statute of limitations: incident date + N years = limitation deadline (varies by jurisdiction + cause of action).

  • No — this is calendar date math, not time-of-day. Time zones become relevant for hour/minute calculations across regions; for whole-day calculations (this tool), time zones aren't needed. The one exception is "today": the default base date and the "from today" count use the date in Singapore (UTC+8), the business day RECATOOLS runs on, not your device's clock. For timezone conversion + scheduling across regions, use the Timezone Converter.

  • This tool counts calendar days, and it counts from the day after the base date: base + 30 days lands on the 30th day after it. "30 working days" or "30 business days" requires excluding weekends + holidays — use the Working Days Calculator. If a contract says only "30 days", check its definitions clause, and whether the day of notice itself counts. For unambiguous contracts: always specify "calendar days" or "working days" + the relevant working calendar (country).

  • This tool does not do its arithmetic on JavaScript Date objects. It works on whole calendar days (year, month, day) on the Gregorian calendar, extended back before 1582 the way ECMAScript itself does, so daylight-saving changes and your device's time zone cannot shift a result. It reproduces JavaScript's month-overflow rule exactly for the headline and computes the clamped date beside it. For hour/minute math across DST transitions, use a library that models time zones, such as Luxon or date-fns.

  • No. All calculations run in your browser via JavaScript. No request the page makes carries your inputs. DevTools → Network will still list the site's own page-view beacons and, if you have consented, analytics and ad requests, but none of them contains what you entered. Dates stay on your device. Safe for confidential contract + personal date math.

  • Pair with: Date Difference Calculator for between-dates math; Working Days Calculator for business-day arithmetic; Week Number Calculator for ISO week numbers; Time Duration Calculator for hour/minute math; Age Calculator for birthday → today; Countdown Timer for event countdowns. External: Google Calendar, Notion, Todoist for persistent date tracking.

Method & sources

How it computes

Whole-day arithmetic on the proleptic Gregorian calendar. Years and months are combined into one count of months and applied first, then weeks × 7 + days. Headline: the overflow reading of ECMA-262 MakeDay (31 Jan + 1 month = 3 Mar); the clamped reading (28 Feb) is shown whenever the two differ. "From today" counts from the date in Singapore (UTC+8).

What this tool implements

  • Overflow reading per ECMA-262 MakeDay (§21.4.1.28), which builds a day number from year, month and day without cutting the day to the target month; the calculator reproduces it exactly and is tested against JavaScript's own Date on more than 5,000 cases.
  • Clamped reading as documented by PostgreSQL (interval arithmetic: "March 31 plus 1 month becomes April 30"), Java LocalDate.plusMonths/plusYears (2008-02-29 + 1 year → 2009-02-28), .NET DateTime.AddMonths and python-dateutil relativedelta; the tests pin each vendor's own examples.
  • Order of operations: months first, then days — the order PostgreSQL documents for interval addition. Years count as 12 months in the same step, so 1 year + 6 months equals 18 months.
  • Calendar: proleptic Gregorian, as ECMA-262 §21.4.1.1 defines time values; leap years every 4th year except centuries not divisible by 400. Dates are read and written as RFC 3339 full-date (YYYY-MM-DD), years 0001–9999.
  • "Today" is the RECATOOLS business day, the date in Asia/Singapore, not the viewer's clock.
  • Legal framing: Singapore's Interpretation Act 1965 s 2 defines "month" only as a calendar month; the page no longer asserts which month-end rule contracts or courts use.
  • Corrected 2026-10-26: years and months were stepped separately (29 Feb 2024 + 1 year + 1 month gave 1 Apr 2025, "clamped" 31 Mar; now 29 Mar under both readings); "from today" read the viewer's clock; fractional amounts were silently truncated; the clamp was attributed to Excel EDATE, whose documentation does not state it; the overflow result was said to match the common-law corresponding-date convention; the FAQ said the tool matched Excel and Google Sheets.

Sources

What can make this go out of date

  • None at runtime; nothing the reader types leaves the page.
Advertisement
Pre-footer · AD-W3 728 × 90