Calculates the quarter of the year in which a date falls.
An integer, 1-4.
Quarter(date)
<cfscript>
myDatetime = DateFormat(Now());
writeOutput(myDatetime & "<br/>");
writeOutput("Falls on the " & Quarter(myDatetime) & "th quarter");
</cfscript>
Output
06-Nov-18
Falls on the 4th quarter
Sign in to your account