DAYNAME

functionsupportedCore SQL functions

docs.snowflake.com ↗

Date & time functions

Extracts the three-letter day-of-week name from the specified date or timestamp. Note To return the full name for the day of the week instead of the three-letter day-of-week name, you can use the EXTRACT function, the DECODE function, and the dayofweek part. See EXTRACT for an example.

Syntax

DAYNAME( <date_or_timestamp_expr> )

Parameters

NameRequiredDescription
date_or_timestamp_exprrequiredA date or a timestamp, or an expression that can be evaluated to a date or a timestamp.

Returns

Returns a value of VARCHAR data type.