MONTHNAME()

Overview

Returns the month name of a date.

USAGE

MONTHNAME(date)

Argument Name

Description

date

The DATE or DATETIME to evaluate

DETAILS

MONTHNAME() is a date-time function that returns the month name of a date or datetime expression.

The names returned are the full names in the current locale, such as January to December in English.

A NULL is returned for the 0000-00-00 date or a NULL argument.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT MONTHNAME('2020-02-29'),
       MONTHNAME('0000-00-00'),
       MONTHNAME(NULL);
+-------------------------+-------------------------+-----------------+
| MONTHNAME('2020-02-29') | MONTHNAME('0000-00-00') | MONTHNAME(NULL) |
+-------------------------+-------------------------+-----------------+
| February                | NULL                    | NULL            |
+-------------------------+-------------------------+-----------------+

ERROR HANDLING

FEATURE INTERACTION

RESPONSES

DIAGNOSIS

ISO 9075:2016

CHANGE HISTORY

Release Series

History

23.09

  • Present starting in MariaDB Xpand 23.09.1.

6.1

  • Present starting in MariaDB Xpand 6.1.0.

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.0

  • Present starting in MariaDB Xpand 6.0.3.

5.3

  • Present starting in MariaDB Xpand 5.3.13.

Release Series

History

6.1

  • Present starting in MariaDB Xpand 6.1.0.

EXTERNAL REFERENCES