Skip to content

Documentation / jalali-js / addMonths

Function: addMonths()

addMonths(date, months, system): CalendarDateFields

Defined in: date-math.ts:52

Adds months (negative to subtract) whole calendar months to date, in system. When the target month is shorter than date.day, the day clamps to the target month's last day (Farvardin 31 plus 6 months gives Mehr 30).

Parameters

date

CalendarDateFields

months

number

system

CalendarSystem

Returns

CalendarDateFields