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.GetMonth

Returns the month part of the specified DateTime.

[Visual Basic]
MustOverride Public Function GetMonth( _
   ByVal time As DateTime _
) As Integer
[C#]
public abstract int GetMonth(
   DateTime time
);
[C++]
public: virtual int GetMonth(
   DateTime time
) = 0;
[JScript]
public abstract function GetMonth(
   time : DateTime
) : int;

Parameters

time
The DateTime instance.

Return Value

The 1-based month part of the specified DateTime.

Remarks

The returned value is an integer between 1 and 12.[RB23]

See Also

Calendar Class | Calendar Members | System.Globalization Namespace