|
|
This document is provided on an "AS IS" basis without warranties of any kind. Smartsite iXperion class libraries may change in future releases.
Sets the year component of the given DateTime.
Namespace: Smartsite.Runtime.Modules
Assembly: Smartsite.Runtime.Modules (in Smartsite.Runtime.Modules.dll)
Syntax
| C# | |
|---|---|
[(IsDeterministic = true)] public static <> SetYear( dt, int year ) | |
| Visual Basic (Declaration) | |
|---|---|
<(IsDeterministic := True)> _ Public Shared Function SetYear ( _ dt As , _ year As Integer _ ) As (Of ) | |
Parameters
- dt
- DateTime
A DateTime.
- year
- Int32
The year (1 through 9999).
Return Value
A new DateTime with the same component values as the given DateTime, except for the year component which is set to the given value.
See Also
DateTimeViperMethods Class
Smartsite.Runtime.Modules Namespace