|
|
This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Adds the specified number of years to the value of the given DateTime.
Namespace: Smartsite.Runtime.Modules
Assembly: Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)
Syntax
| C# | |
|---|---|
[(IsDeterministic = true)] public static <> AddYears( dt, int years ) | |
| Visual Basic (Declaration) | |
|---|---|
<(IsDeterministic := True)> _ Public Shared Function AddYears ( _ dt As , _ years As Integer _ ) As (Of ) | |
Parameters
- dt
- DateTime
A DateTime.
- years
- Int32
A number of years. This parameter can be negative or positive.
Return Value
A DateTime whose value is the sum of the date and time represented by this instance and the given number of years.
See Also
DateTimeViperMethods Class
Smartsite.Runtime.Modules Namespace