Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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
> SELECT monthname(DATE'2024-11-01');
Nov
> SELECT monthname(TIMESTAMP'2024-04-08 13:08:15');
Apr