Skip to main content



DaysInYear Function

Returns the number of days in the year.

Syntax 1

DaysInYear()

Returns the number of days in the year.

Syntax 2

DaysInYear(date)

Returns the number of days in the year.

Arguments

date Date - A date.

Remarks

Example:

DaysInYear("2005-1-28"); // returns 366

Example:

DaysInYear(); // returns 365