Skip to content

MONTHNAME

  • date: This parameter represents the date from which the function will extract the month name. The data type of this parameter can be a date, datetime, or a string in an appropriate format.
SELECT MONTHNAME('2021-05-20') AS 'Month';
| Month |
|-------|
| May |

The MONTHNAME function in SQL is used to get the name of the month from the specified date. In the above example, it is extracting the month name (May) from the date ‘2021-05-20’.