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;
Returns the 1-based month part of the specified DateTime.
The returned value is an integer between 1 and 12.
GregorianCalendar Class | GregorianCalendar Members | System.Globalization Namespace