MONTHNAME
functionsupportedCore SQL functionsReturns the three-letter month name for the specified date or timestamp.
Syntax
MONTHNAME( <date_or_timestamp_expr> )
Parameters
| Name | Required | Description |
|---|---|---|
date_or_timestamp_expr | required | A date or a timestamp, or an expression that can be evaluated to a date or a timestamp. |
Returns
This function returns a value of type VARCHAR.
Usage notes
- To return the full month name instead of the three-letter month name, you can use the TO_CHAR function with the TO_DATE or TO_TIMESTAMP function. The following example uses the TO_CHAR and TO_DATE functions to return the full month name for the date 2025-01-01: