DateTime.DayOfYear Property

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Gets the day of the year represented by this instance.

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


Public ReadOnly Property DayOfYear As Integer
public int DayOfYear { get; }

Property Value

Type: System..::.Int32
The day of the year, expressed as a value between 1 and 366.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0


Windows Phone

See Also


DateTime Structure

System Namespace