Scalar FunctionsDate & Time Functions
startofyear
Returns the start of the year for the given datetime.
Syntax
startofyear(date, offset)Parameters
Prop
Type
Returns: datetime
Examples
Example 1 — Start of the year Leif Erikson sailed to Vinland
print startofyear(datetime(2024-06-15))| print_0 (datetime) |
|---|
| 2024-01-01T00:00:00Z |