PersianCalendar::GetDayOfYear Method (DateTime)
.NET Framework (current version)
Returns the day of the year in the specified DateTime object.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- time
-
Type:
System::DateTime
The DateTime to read.
Return Value
Type: System::Int32An integer from 1 through 366 that represents the day of the year in the specified DateTime object.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | The time parameter represents a date less than MinSupportedDateTime or greater than MaxSupportedDateTime. |
Universal Windows Platform
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 5.0
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 5.0
Show: