Development · Native API migration preview · Coverage validation in progress Published release →

API Browser

Method

AddMonths

func AddMonths(months: int) -> Result<Date, InvalidDateError>

Declaring type: Date
Module: System.Time
Assembly: System.Runtime.dll
Source file: Date.rvn

Adds months and clamps the day to the last day of the target month.

Parameters

Name Type Description
months Int32

Return value

Result<Date, InvalidDateError>