This function returns an integer representing the week number according to ISO 8601. The week number is calculated from the date interpretation of the expression, according to the standard number interpretation.
Syntax:
week(expression)
Return data type: integer
Example
Result
week(
'2012-10-12' )
returns 41 using the default setting for broken weeks (disabled).
If you set the BrokenWeeks variable to 1 (enabled), this example will return 42.