Returns the number of days in the month specified by the specified year, month and era.
[Visual Basic] Overloads MustOverride Public Function GetDaysInMonth( _ ByVal year As Integer, _ ByVal month As Integer, _ ByVal era As Integer _ ) As Integer [C#] public abstract int GetDaysInMonth( int year, int month, int era ); [C++] public: virtual int GetDaysInMonth( int year, int month, int era ) = 0; [JScript] public abstract function GetDaysInMonth( year : int, month : int, era : int ) : int;
The number of days in the specified month. For the month of February (month = 2)[RB18], the returned value is 28 or 29 depending on whether year is a leap year.
Exception Type | Condition |
---|---|
ArgumentException | is thrown if month is less than 1 or greater than 12. |
Calendar Class | Calendar Members | System.Globalization Namespace | Calendar.GetDaysInMonth Overload List