System.Globalization.Calendar.GetDaysInMonth Method

When overridden in a derived class, returns the number of days in the specified month, year, and era.

Syntax

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

Parameters

year
An integer that represents the year.
month
A positive integer 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, in System.Globalization.GregorianCalendar, Calendar.GetDaysInMonth(int, int) for February returns 28 in a common year or 29 in 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