Skip to main content



DayOfYear Function

Returns the day of the year, 1 = 1/1 and 365(366) = 12/31.

Syntax 1

DayOfYear()

Returns the day of the year, 1 = 1/1 and 365(366) = 12/31.

Syntax 2

DayOfYear(date)

Returns the day of the year, 1 = 1/1 and 365(366) = 12/31.

Arguments

date Date - A date.

Remarks

Example:

DayOfYear("2005-1-28"); // returns 28