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 int GetDaysInMonth(
	int year,
	int month
)
Public Function GetDaysInMonth ( 
	year As Integer,
	month As Integer
) As Integer
public:
int GetDaysInMonth(
	int year, 
	int month
)
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.2.0.0 (1.2.0)