Returns the year part of the specified DateTime.
[Visual Basic] Overrides Public Function GetYear( _ ByVal time As DateTime _ ) As Integer [C#] public override int GetYear( DateTime time ); [C++] public: override int GetYear( DateTime time ); [JScript] public override function GetYear( time : DateTime ) : int;
Returns the year part of the specified DateTime.
The returned value is an integer between 1 and 9999.
GregorianCalendar Class | GregorianCalendar Members | System.Globalization Namespace