UmAlQuraCalendar.GetDayOfYear Method

July 28, 2014

Calculates on which day of the year a specified date occurs.

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

public override int GetDayOfYear(
	DateTime time
)

Parameters

time
Type: System.DateTime
The date to read.

Return Value

Type: System.Int32
An integer from 1 through 355 that represents the day of the year specified by the time parameter.

ExceptionCondition
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.

The following example displays the values of several components of a DateTime in terms of the Um Al Qura calendar.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2014 Microsoft