System.Globalization.JapaneseCalendar.GetDaysInMonth Method

Returns the number of days in the specified month in the specified year in the specified era.

Syntax

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

Parameters

year
An integer that represents the year.
month
An integer from 1 to 12 that represents the month.
era
An integer that represents the era.

Returns

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

Remarks

For example, this method returns 28 or 29 for Nigatsu (February, month = 2), depending on whether year is a leap year.

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0