This tutorial explains how to use the MySQL MONTH function with syntax and examples.
The MySQL MONTH function returns the month portion of a date value.
The syntax for the MONTH function in MySQL is:
A date or datetime value from which to extract the month.
The MONTH function can be used in the following versions of MySQL:
Let's look at some MySQL MONTH function examples and explore how to use the MONTH function in MySQL.
For example:
This last MONTH example would display the month portion of the current system date (current system date is returned by the CURDATE function).