| QUARTER | |
| Description
Calculates the quarter of the year in which a date falls. |
|
| Returns
An integer, 1-4. |
|
| Category
Date and time functions |
|
Function syntaxQuarter(date) |
|
| See also
DatePart, Month |
|
| Parameters
|
|
| Usage
When passing a date/time value as a string, you must enclose it in quotation marks. Otherwise, it is interpreted as a number representation of a date/time object. |
|
Example<h3>Quarter Example</h3> Today, <cfoutput>#DateFormat(Now())#</cfoutput>, is in Quarter <cfoutput>#Quarter(Now())#</cfoutput>. |
|
| DATE | |