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

# dayofweek_iso

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

Returns the ISO standard day of the week for the specified date as an integer within the range of `1` to `7`. In this standard, `1` represents Monday, and `7` represents Sunday.

## Syntax

```Haskell theme={null}
INT DAY_OF_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 day of the week for the date `2023-01-01`:

```SQL theme={null}
MySQL > select dayofweek_iso('2023-01-01');
+-----------------------------+
| dayofweek_iso('2023-01-01') |
+-----------------------------+
|                           7 |
+-----------------------------+
```

## Keywords

DAY\_OF\_WEEK\_ISO


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