Home / Search/ Language Reference/ Functions/ Scalar Functions/ DateTime Functions/dayofyear

dayofyear

The dayofyear function returns the integer number representing the day number of the given year.

Syntax

    dayofyear( Date )

Arguments

Returns

The day number of the given year.

Example

  • dayofyear(datetime(2015-12-14)) returns as 348.