System.Globalization.HebrewCalendar.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 13 that represents the month.
era
An integer that represents the era. Specify either HebrewCalendar.HebrewEra or Calendar.Eras[Calendar.CurrentEra].

Returns

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

Remarks

For example, this method returns 29 or 30 for Cheshvan, depending on the placement of Jewish holidays.

This implementation of the System.Globalization.HebrewCalendar class recognizes only the Hebrew years 5343 to 5999 (1583 to 2239 in the Gregorian calendar).

Requirements

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