CalendarSystem GetDaysInMonth Method Noda Time
Returns the number of days in the given month within the given year.

Namespace: NodaTime
Assembly: NodaTime (in NodaTime.dll) Version: 1.3.0.0 (1.3.1)
Syntax

public int GetDaysInMonth(
	int year,
	int month
)

Parameters

year
Type: OnlineSystem Int32
The year in which to consider the month
month
Type: OnlineSystem Int32
The month to determine the number of days in

Return Value

Type: OnlineInt32
The number of days in the given month and year.
Exceptions

ExceptionCondition
OnlineSystem ArgumentOutOfRangeExceptionThe given year / month combination is invalid for this calendar.
Version Information

Available since: 1.0.0
Supported in the PCL? Yes
See Also