Noda Time
GetDaysInMonth Method (year, month)
NamespacesNodaTimeCalendarSystemGetDaysInMonth(Int32, Int32)

[This is preliminary documentation and is subject to change.]

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
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)