MONTHNAME

Extracts the name of the month from the given datetime.

Syntax

MONTHNAME ( dateobj )

Arguments

  • dateobj: a valid date, datetime, or parsable date string.

Return Type

String

Examples

SELECT MONTHNAME('2009-02-13 23:31:30');
+----------------------------------+
| MONTHNAME('2009-02-13 23:31:30') |
+----------------------------------+
| February                         |
+----------------------------------+

Related Topics

Last modified: May 31, 2023

Was this article helpful?