DAYNAME
Descriptionβ
Calculates the name of the day corresponding to the given date expression.
Syntaxβ
DAYNAME(<dt>)
Parametersβ
Parameter | Description |
---|---|
<dt> | The date expression to be calculated |
Return Valueβ
Returns the name of the day corresponding to the given date expression.
Examplesβ
select dayname('2007-02-03 00:00:00');
+--------------------------------+
| dayname('2007-02-03 00:00:00') |
+--------------------------------+
| Saturday |
+--------------------------------+