EastAsianLunisolarCalendar.GetDaysInMonth Method (Int32, Int32, Int32)

Note: This method is new in the .NET Framework version 2.0.

Calculates the number of days in the specified month of the specified year and era.

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)

public override int GetDaysInMonth (
	int year,
	int month,
	int era
)
public int GetDaysInMonth (
	int year, 
	int month, 
	int era
)
public override function GetDaysInMonth (
	year : int, 
	month : int, 
	era : int
) : int

Parameters

year

An integer that represents the year.

month

An integer from 1 through 12 in a common year, or 1 through 13 in a leap year, that represents the month.

era

An integer that represents the era.

Return Value

The number of days in the specified month of the specified year and era.

Exception typeCondition

ArgumentOutOfRangeException

year, month, or era is outside the range supported by this calendar.

If the month parameter is the second month, the GetDaysInMonth method returns 28 or 29 depending on whether the year parameter is a leap year.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show: