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

This example returns 348:

print dayofyear( datetime(2025-12-14) )