Important

Helios features are now enabled during weekly update windows and are no longer directly tied to SingleStore engine releases. Refer to the release notes to view the latest features available in your Helios cluster.

MONTH

The MONTH() function extracts the month from the given datetime.

Syntax

MONTH ( dateobj )

Arguments

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

Return Type

Integer

Examples

SELECT MONTH('2009-02-13');
+---------------------+
| MONTH('2009-02-13') |
+---------------------+
|                   2 |
+---------------------+

Related Topics

Last modified:

Was this article helpful?