Skip to content

MONTH

  • date: The “date” parameter represents the input date that needs to be evaluated in order to extract the month portion. This input date should adhere to the MySQL standard for dates (YYYY-MM-DD) or datetime (YYYY-MM-DD HH
SELECT MONTH('2021-03-08');
3

The MONTH() function in MySQL retrieves the month from the specified date. In this example, it extracts the month from the timestamp ‘2021-03-08’, resulting in the output ‘3’.