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!

GregorianCalendar.GetMonth

Returns the month part of the specified DateTime.

[Visual Basic]
Overrides Public Function GetMonth( _
   ByVal time As DateTime _
) As Integer
[C#]
public override int GetMonth(
   DateTime time
);
[C++]
public: override int GetMonth(
   DateTime time
);
[JScript]
public override function GetMonth(
   time : DateTime
) : int;

Parameters

time
The DateTime instance.

Return Value

Returns the 1-based month part of the specified DateTime.

Remarks

The returned value is an integer between 1 and 12.

See Also

GregorianCalendar Class | GregorianCalendar Members | System.Globalization Namespace