Adding one month keeps the day number when that day exists in the target month, and moves to the target month’s last day when it does not. IBM’s date documentation states it plainly: adding a month to 31 January gives 28 February, or 29 February in a leap year. JavaScript’s Date object instead overflows to 3 March, so the tool’s rule must be checked.
Use the practice table
The table below is synthetic. It is about a fictional subscription, and it was not produced by any AI tool. It is the only source for the exercise.
Practice table — fictional subscription:
- Start date: 31 January 2026.
- Add: 1 month.
Practice AI answer: “One month after 31 January 2026 is 3 March 2026.”
Check the answer
Expected result. We checked the month-end clamping rule. We did not run an AI tool on the practice table. The checked list below is what to expect if the date is correct; run the same check yourself on the table above.
| What was checked | AI answer says | Correct value | Verdict |
|---|---|---|---|
| Target month | February 2026 | February 2026 | Correct |
| Days in February 2026 | not shown | 28 | Correct — 2026 is not a leap year |
| Result under clamping | 3 March 2026 | 28 February 2026 | Wrong — the day clamps to the last day of February; 3 March is the overflow answer |
| Adding one more month | not shown | 28 March 2026 | Correct — the clamped date stays on the 28th |
Clamping keeps the date in the target month
The AI answer used overflow, adding the missing days on to March. The usual calendar convention, and the one Excel’s EDATE and most date libraries use, is clamping: the result stays in February, on its last day. The two rules differ by three days, so always say which rule the system uses before relying on a recurring monthly date.
See also: check-ai-date-plus-months.
What to do with each verdict
- Correct: keep the date, and say the clamping rule with it.
- Wrong: replace it with the clamped date and say the old answer overflowed.
- A schedule repeats monthly: compute each date from the original anchor, not from the previous date, or the schedule drifts to the 28th.
Limits
- Adding one month is not adding 30 days: 31 January plus 30 days is 2 March 2026, a different date again.
- Adding and subtracting a month are not exact opposites after a clamp: 31 March minus a month is 28 February, and 28 February plus a month is 28 March.
- No AI tool was run for this guide. The practice table and answer are synthetic.
Sources
- Adding Months to a Date — UnixClock — Clamping keeps the result in the target month: 31 January plus a month is 28 February; JavaScript Date overflows to 3 March. Checked 2026-11-28.
- Accounting for months with different numbers of days — IBM — If the day does not exist, adding a month results in the last day of the next month. Checked 2026-11-28.
