NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Calendar.GetYear

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;

Parameters

time
The DateTime instance.

Return Value

The year part of the specified DateTime.

Remarks

The returned value is an integer between 1 and 9999[RB30] .

See Also

Calendar Class | Calendar Members | System.Globalization Namespace