addMonths

fnSeries addMonths(Series s, long months)

Adds calendar months to a DATETIME or DATE column (ADR-2026-10-30-02): UTC civil arithmetic; the day clamps to the target month's end (Jan 31 + 1mo -> Feb 28/29); DATETIME keeps its time of day; negative offsets are symmetric; nulls propagate.

Parameters

sthe DATETIME or DATE Series
monthsthe signed month count

Returns

the shifted Series (same kind).

Throws

DataFrameException on non-calendar kinds.