Berserk Docs
Scalar FunctionsDate & Time Functions

endofweek

Returns the end of the week for the given datetime.

Syntax

endofweek(date, offset)

Parameters

Prop

Type

Returns: datetime

Examples

Example 1 — End of the week of the Lindisfarne raid

print endofweek(datetime(2024-06-08))
print_0 (datetime)
2024-06-08T23:59:59.9999999Z

On this page