monthname function
Applies to: Databricks SQL
Databricks Runtime
Returns the three-letter English abbreviation for the month of expr.
Syntax
monthname(expr)
Arguments
expr: ADATE,TIMESTAMP, orSTRINGexpression.
Returns
A STRING.
The result is one of Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, or Dec.
Examples
SQL
> SELECT monthname(DATE'2024-11-01');
Nov
> SELECT monthname(TIMESTAMP'2024-04-08 13:08:15');
Apr