Home » MySQL month() Function

MySQL month() Function

by Online Tutorials Library

MySQL Date/Time month() Function

The month() is a MySQL date/time function. It is used to get the value of month from given datetime or time.

Syntax

Parameter:

Date_value: datetime or time value for getting hour.

Returns:

This function returns the month portion of a date value.

Example 1

Output:

MySQL Datetime month() Function

Example 2

Output:

MySQL Datetime month() Function

Next TopicMySQL datetime

You may also like