Important
New database features are no longer connected to engine versions; features are now enabled independently during scheduled update windows, and “major” and “minor” releases no longer exist in Helios. Please visit the release notes to view the latest features available in your database clusters.
MONTH
On this page
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: