UmAlQuraCalendar::GetDayOfYear Method (DateTime)
Calculates the day of the year on which a specified date occurs.
Assembly: mscorlib (in mscorlib.dll)
Parameters
- time
-
Type:
System::DateTime
The date value to read. The UmAlQuraCalendar class supports only dates from 04/30/1900 00.00.00 (Gregorian date) through 11/16/2077 23:59:59 (Gregorian date).
Return Value
Type: System::Int32An integer from 1 through 355 that represents the day of the year specified by the time parameter.
| Exception | Condition |
|---|---|
| ArgumentOutOfRangeException | time is outside the range supported by this calendar. |
The day of the year is defined as the number of days from the first day of the year. For example, the GetDayOfYear method returns 1 for the first day of the first month of the year, and the total number of days in the year for the last day of the last month.
Available since 10
.NET Framework
Available since 2.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0