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