DayOfYear()

语法

Result = DayOfYear(Date)
概要
Returns the number of days elapsed since the beginning of the year of the specified date.

参数

Date The date value from which to extract the number of days.

返回值

Returns the number of days since the beginning of the year. The result is always between 1 and 366.

示例

  Debug DayOfYear(Date(2002, 2, 1, 0, 0, 0))  ; Outputs '32'. (31 days for January + 1)

参阅

FormatDate(), Year(), Month(), Day(), Hour(), Minute(), Second()

已支持操作系统

所有

<- DayOfWeek() - Date Index - FormatDate() ->