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

# dayname

> Returns the day corresponding to a date.

Returns the day corresponding to a date.

The `date` parameter must be of the DATE or DATETIME type.

## Syntax

```Haskell theme={null}
VARCHAR DAYNAME(date)
```

## Examples

```Plain Text theme={null}
MySQL > select dayname('2007-02-03 00:00:00');
+--------------------------------+
| dayname('2007-02-03 00:00:00') |
+--------------------------------+
| Saturday                       |
+--------------------------------+
```

## keyword

DAYNAME


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