This topic has not yet been rated - Rate this topic

EastAsianLunisolarCalendar.GetDayOfYear Method

Calculates the day of the year in the specified date.

Namespace:  System.Globalization
Assembly:  mscorlib (in mscorlib.dll)
abstract GetDayOfYear : 
        time:DateTime -> int  
override GetDayOfYear : 
        time:DateTime -> int

Parameters

time
Type: System.DateTime

The DateTime to read.

Return Value

Type: System.Int32
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.

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.