System.Globalization.HebrewCalendar.GetDayOfYear Method

Returns the day of the year in the specified DateTime.

Syntax

public override int GetDayOfYear (DateTime time)

Parameters

time
The DateTime to read.

Returns

An integer from 1 to 385 that represents the day of the year in the specified DateTime.

Remarks

The day of the year is defined as the number of days from the first day of the year. For example, HebrewCalendar.GetDayOfYear(DateTime) for the first day of the first month returns 1, and HebrewCalendar.GetDayOfYear(DateTime) for the last day of the last month returns the total number of days in that year, which is the same value returned by HebrewCalendar.GetDaysInYear(int, int).

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