_week_of_year

Returns the number of the week of the year of "date_expression" according to the ISO 8601 standard. Week 1 of the year is the first week of the year to contain a Thursday, which is equivalent to the first week containing January 4th. A week starts on Monday (day 1) and ends on Sunday (day 7).

Syntax

_week_of_year ( date_expression )

Example

_week_of_year ( 2003-01-01 )

Result

1