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