quarter

Returns the quarter in "date_expression" as a number in the range 1 to 4, where 1 represents January 1 through March 31.

Syntax

quarter ( date_expression )

Example

quarter ( 2005-11-01 )

Result

Returns 4.