Export (0) Print
Expand All

EastAsianLunisolarCalendar.GetDayOfYear Method

Calculates the day of the year in the specified date.

Namespace: System.Globalization
Assembly: mscorlib (in mscorlib.dll)

public override int GetDayOfYear (
	DateTime time
)
public int GetDayOfYear (
	DateTime time
)
public override function GetDayOfYear (
	time : DateTime
) : int
Not applicable.

Parameters

time

The DateTime to read.

Return Value

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.

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

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show:
© 2014 Microsoft