Berserk Docs
Scalar FunctionsDate & Time Functions

startofday

Returns the start of the day for the given datetime.

Syntax

startofday(date, offset)

Parameters

Prop

Type

Returns: datetime

Examples

Example 1 — Dawn of the Lindisfarne raid

print startofday(datetime(2024-06-08 06:00))
print_0 (datetime)
2024-06-08T00:00:00Z

On this page