System.Globalization.EastAsianLunisolarCalendar.GetDayOfYear Method

Calculates the day of the year in the specified date.

Syntax

public override int GetDayOfYear (DateTime time)

Parameters

time
The DateTime to read.

Returns

An integer from 1 through 354 in a common year, or 1 through 384 in a leap year, that represents the day of the year specified in the time parameter.

Remarks

The day of the year is defined as the number of days from the first day of the year. For example, EastAsianLunisolarCalendar.GetDayOfYear(DateTime) for the first day of the first month returns 1, and EastAsianLunisolarCalendar.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 EastAsianLunisolarCalendar.GetDaysInYear(int, int).

Requirements

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0