Returns the day of the year in the specified DateTime.
- time
- The DateTime to read.
An integer from 1 to 366 that represents the day of the year in the specified DateTime.
The day of the year is defined as the number of days from the first day of the year. For example, TaiwanCalendar.GetDayOfYear(DateTime) for the first day of the first month returns 1, and TaiwanCalendar.GetDayOfYear(DateTime) for the last day of the last month returns the total number of days in that year. The total is the same as the value returned by TaiwanCalendar.GetDaysInYear(int, int).