Calendar.AddMonths
Overview¶
DateTimeOffset Calendar.AddMonths ( dateTime, months )
Arguments¶
DateTimeOffset dateTime Specifies the base date time value.
Number months Specifies the how many months will be added to dateTime parameter.
Remarks¶
Examples¶
var newDate = $Calendar.AddMonths($Calendar.Today, 2); //adds 2 months to the current date and returns DateTimeOffset object.