Noda Time
GetDaysInMonth Method (year, month)
NamespacesNodaTimeCalendarSystemGetDaysInMonth(Int32, Int32)
Returns the number of days in the given month within the given year.
Declaration Syntax
C#Visual BasicVisual C++
public abstract int GetDaysInMonth(
	int year,
	int month
)
Public MustOverride Function GetDaysInMonth ( 
	year As Integer,
	month As Integer
) As Integer
public:
virtual int GetDaysInMonth(
	int year, 
	int month
) abstract
Parameters
year (Int32)
The year in which to consider the month
month (Int32)
The month to determine the number of days in
Return Value
Int32
The number of days in the given month and year.
Exceptions
ExceptionCondition
ArgumentOutOfRangeExceptionThe given year / month combination is invalid for this calendar.

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.1.0.0 (1.1.1)