• Parameters

    • date: Date

      The date from of which the months are to be added.

    • numberOfMonths: number

      The number of months to add from the given date. It will throw an error if it's zero or negative.

    Returns Date

    The updated date with the added months.

    Description

    Add the specified number of months from the given date.

Generated using TypeDoc