YEAR_OF_WEEK
Last updated: 9/11/2026Returns the year of ISO week from timestamp.
Syntax
YEAR_OF_WEEK(timestamp)
Arguments
| Name | Type | Description | Default Value |
|---|---|---|---|
| timestamp | timestamp |
Returns
bigint
Examples
| timestamp | Output |
|---|---|
| timestamp "2018-03-10 08:55:12.456" | 2018 |