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