> ## Documentation Index
> Fetch the complete documentation index at: /documents/llms.txt
> Use this file to discover all available pages before exploring further.

# week_iso

> Returns the ISO standard week of the year for the specified date as an integer within the range of 1 to 53.

Returns the ISO standard week of the year for the specified date as an integer within the range of `1` to `53`.

## Syntax

```Haskell theme={null}
INT WEEK_ISO(DATETIME date)
```

## Parameters

`date`: the date you want to convert. It must be of the DATE or DATETIME type.

## Examples

The following example returns the ISO standard week of the year for the date `2008-02-20 00:00:00`:

```SQL theme={null}
MySQL > select week_iso ('2008-02-20 00:00:00');
+-----------------------------------+
| week_iso('2008-02-20 00:00:00')   |
+-----------------------------------+
|                                 8 |
+-----------------------------------+
```

## Keywords

WEEK\_ISO


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.