DAYOFMONTH()

Overview

Returns the day of the month in the given date.

USAGE

DAYOFMONTH(date)

Argument Name

Description

date

The date to evaluate

DETAILS

DAYOFMONTH() is a date-time function that returns the day of the month.

The return value will be 0 for a day that has 00 in the day, such as 0000-00-00, or 2021-01-00. Otherwise it will be a valid day for the associated month.

A NULL is returned if the argument is NULL.

SYNONYMS

SCHEMA

PARAMETERS

SKYSQL

PRIVILEGES

EXAMPLES

SELECT DAYOFMONTH('2020-02-29');
+--------------------------+
| DAYOFMONTH('2020-02-29') |
+--------------------------+
|                       29 |
+--------------------------+

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