Berserk Docs
Scalar FunctionsDate & Time Functions

dayofyear

Extracts the day of year (1-366) from a datetime value.

Syntax

dayofyear(date)

Parameters

Prop

Type

Returns: int

Examples

Example 1

print dayofyear(datetime(2024-06-08)) // day of the year when Norsemen raided Lindisfarne
print_0 (int)
160

On this page