DateTimeOffset.DayOfYear Property

 

Gets the day of the year represented by the current DateTimeOffset object.

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

public int DayOfYear { get; }

Property Value

Type: System.Int32

The day of the year of the current DateTimeOffset object, expressed as a value between 1 and 366.

Universal Windows Platform
Available since 8
.NET Framework
Available since 2.0
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1
Return to top
Show: