Javatpoint Logo
Javatpoint Logo

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





Youtube For Videos Join Our Youtube Channel: Join Now

Feedback


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA