日期加减计算器

从日期加减天数、周数、月数。

计算器

如何使用 日期加减计算器

  1. 1Enter the start date
  2. 2Enter the amount to add or subtract
  3. 3Select the unit (days, weeks, months, years)
  4. 4Choose add or subtract
  5. 5See the result date

关于 日期加减计算器

The Add or Subtract Days Calculator helps you find a future or past date by adding or subtracting a specific amount of time from any start date. Choose to add or subtract days, weeks, months, or years, and instantly see the resulting date.

This is the ideal tool for deadline calculations: find the date 30 days from today, 3 months from a contract start, or 2 weeks before a filing deadline. The calculation correctly handles month-end edge cases and leap years.

All processing happens in your browser with no server calls, so deadline and schedule data remains private. Works for any date within the standard Gregorian calendar range.

日期加减计算器的主要功能

  • Add or subtract days, weeks, months, or years from any date
  • Choose add or subtract direction with a simple toggle
  • Handles month-end edge cases (e.g., Jan 31 + 1 month = Feb 28/29)
  • Correctly accounts for leap years
  • Works for any start date within the Gregorian calendar
  • Instant result date displayed with day of week
  • Useful for deadline, due date, and anniversary calculations
  • Date inputs never stored or transmitted

示例

Find a date 30 days from today

Calculate the exact date 30 calendar days from a given start date.

输入

Start: 2025-01-15, Add: 30 days

输出

Result: 2025-02-14 (Friday)

Date 3 months before a deadline

Find when to start a process that takes 3 months to complete.

输入

Start: 2025-09-30, Subtract: 3 months

输出

Result: 2025-06-30 (Monday)

常见使用场景

  • Finding a project deadline that is N days from the start date
  • Calculating when a 30-day or 90-day contract period ends
  • Determining a payment due date from the invoice date
  • Finding the expiry date of a 1-year subscription or license
  • Scheduling a follow-up appointment a specific number of weeks out
  • Calculating when a loan or deposit will mature

故障排除

Unexpected result when adding months to a month-end date

解决方案

Adding one month to January 31 gives February 28 (or 29 in leap years) because February does not have 31 days. This is the standard date arithmetic behavior.

Confusing calendar days with working days

解决方案

This tool adds or subtracts calendar days (including weekends). For business day calculations that skip weekends, use the Working Days Calculator instead.

Expecting adding and then subtracting the same amount to return the original date

解决方案

Due to month-end clamping, adding 1 month to Jan 31 gives Feb 28, and subtracting 1 month from Feb 28 gives Jan 28 — not Jan 31. This is expected behavior in standard date arithmetic.

常见问题

What units can I add or subtract?

You can add or subtract days, weeks, months, or years. Each unit is handled precisely — weeks multiply days by 7, and months/years use calendar month boundaries.

How are month-end dates handled?

When adding months, if the resulting month does not have enough days (e.g., adding 1 month to January 31), the result is clamped to the last day of the target month.

Does it include the start date in the count?

No. Adding 1 day to January 15 gives January 16. The start date itself is not counted as the first day.

Can I add negative values?

Yes, in a sense: choose "Subtract" mode to go backward. You can also think of it as entering a positive value with the subtract direction selected.

What day of the week will the result date fall on?

The result date is displayed with the full day name (Monday, Tuesday, etc.) so you can immediately see whether it falls on a weekend or weekday.

Can I calculate with years for anniversary or expiry dates?

Yes. Adding 1 year to any date gives the same month and day in the following year, correctly handling February 29 in leap years.

Is there a limit to how far I can add or subtract?

No hard limit is enforced. The calculator works across decades and centuries within the Gregorian calendar range.

Is my data private?

Yes. All calculations run entirely in your browser. No dates or amounts are transmitted to any server.