Returns the number of the quarter, an integer ranging from 1 to 4.
Quarter(date)
Any date.
Years from 0 to 29 are interpreted as 21st century values. Years 30 to 99 are interpreted as 20th century values.
When passing a date/time value as a string, make sure it is enclosed in quotes. Otherwise, it is interpreted as a number representation of a date/time object, returning undesired results.
<!--- This example shows the use of Quarter ---> <HTML> <HEAD> <TITLE> Quarter Example </TITLE> </HEAD> <BODY BGCOLOR=silver> <H3>Quarter Example</H3> Today, <CFOUTPUT>#DateFormat(Now())#</CFOUTPUT>, is in Quarter <CFOUTPUT>#Quarter(Now())#</CFOUTPUT>. </BODY> </HTML>