Javatpoint Logo
Javatpoint Logo

MySQL Date/Time quarter() Function

The quater() is a MySQL date/time function. It is used to get the quarter portion of the given date/datetime.

Syntax

Parameter:

Date_value : date or datetime for getting quarter value.

Returns:

This function returns the quarter portion of a date value.

Example 1

Output:


MySQL Datetime quarter() Function

Example 2

Output:


MySQL Datetime quarter() Function
Next TopicMySQL datetime




Help Others, Please Share

facebook twitter google plus pinterest

Learn Latest Tutorials


Preparation


Trending Technologies


B.Tech / MCA