C-Sharp | Java | Python | Swift | GO | WPF | Ruby | Scala | F# | JavaScript | SQL | PHP | Angular | HTML
| MySQL Date/Time quarter() FunctionThe quater() is a MySQL date/time function. It is used to get the quarter portion of the given date/datetime. Syntax
 select quarter(date_value); Parameter:
 Date_value : date or datetime for getting quarter value. Returns:This function returns the quarter portion of a date value. Example 1
 
select quarter('2018-09-28');
Output:   Example 2
select quarter('2021-05-20');
Output:   
Next TopicMySQL datetime
 |