Visual Basic (Declaration) | |
---|---|
Public Property CurrentYear As Integer |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As RegionalSettings Dim value As Integer instance.CurrentYear = value value = instance.CurrentYear |
C# | |
---|---|
public int CurrentYear {get; set;} |
Property Value
Integer year numberSpecify a year value using this property to provide a year value for date values that do not include years.
To specify how date values calculate centuries when year values are provided as two-digit years, set the TwoDigitYearMax property.
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2