QUARTER

Applies to: ✅ Data 360 SQL ✅ Tableau Hyper API

Returns the quarter field from a timestamp. This function is equivalent to EXTRACT(QUARTER FROM ...).

Syntax 

1quarter(<timestamp>)

Arguments 

Required 

  • <timestamp>: The timestamp to extract the quarter from.

Returns 

Returns the quarter as an integer.

Examples 

Extract the Quarter from a Timestamp 

Get the quarter of the year from a timestamp.

1SELECT quarter(timestamp '2001-02-16 20:38:40') AS result;

Returns 1.

Related Documentation 

DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!