In MariaDB, MONTH() is a built-in date and time function that returns the month from a given date expression.
It accepts one argument, which is the date you want to extract the month from.
It returns the month as a number in the range 1 to 12 for January through December. If the date has a zero month part (e.g. 0000-00-00 or 2025-00-00), the result is 0.