dayname function
Applies to:  Databricks SQL 
 Databricks Runtime 16.1 and above
Returns the three-letter English acronym for the day of the week for the given date.
Syntax
dayname(expr)
Arguments
- expr: A- DATEor- TIMESTAMPexpression.
Returns
A STRING.
One of: 'Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'.
Examples
SQL
> SELECT dayname(DATE'2024-11-01' + CAST(offset AS INT)) AS days
    FROM range(8) AS t(offset);
 Fri
 Sat
 Sun
 Mon
 Tue
 Wed
 Thu
 Fri