Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 10 Next »

Overview

Adds specified number of months to specified date time value and returns.

DateTimeOffset myCalendar.AddMonths(dateTime: DateTimeOffset, months: number)

Arguments

Specifies the base date time value.
number months
Specifies the how many months will be added to dateTime parameter.

Example

var newDate = $Calendar.AddMonths($Calendar.Today, 2); //adds 2 months to the current date and returns DateTimeOffset object.

See Also

  • No labels