Skip to content

Documentation


Documentation / @kizami/leave / addMonths

Function: addMonths() ​

addMonths(date, months): string

Defined in: date.ts:54

月単位の加算。加算後の月の末日を超える日は末日にクランプする(例: 1/31 + 1ヶ月 = 2/28)。

Parameters ​

date ​

string

months ​

number

Returns ​

string