Skip to main content
VeloDB Cloud 4.x is based on Doris 3.x. Versions in this section refer to Doris versions. See Version Mapping.

DAYNAME

Description​

Calculates the name of the day corresponding to the given date expression.

Syntax​

DAYNAME(<dt>)

Parameters​

ParameterDescription
<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 |
+--------------------------------+