Get started
Load & manage data
Work with data
Administration
Reference & resources
CLUSTER BY
mask
ROW FILTER
更新しました 2025/01/23
Send us feedback
weekofyear
Applies to: Databricks SQL Databricks Runtime
Returns the week of the year of expr.
expr
weekofyear(expr)
expr: A DATE expression.
An INTEGER.
A week is considered to start on a Monday and week 1 is the first week with >3 days. This function is a synonym for extract(WEEK FROM expr).
extract(WEEK FROM expr)
> SELECT weekofyear('2008-02-20'); 8
day function
dayofmonth function
dayofyear function
extract function
dayofweek function