Berserk Docs
Scalar FunctionsDate & Time Functions

endofyear

Returns the end of the year for the given datetime.

Syntax

endofyear(date, offset)

Parameters

Prop

Type

Returns: datetime

Examples

Example 1 — End of the year the Great Heathen Army landed

print endofyear(datetime(2024-11-01))
print_0 (datetime)
2024-12-31T23:59:59.9999999Z

On this page