Contents > CFML Reference > ColdFusion Functions > Quarter PreviousNext

Quarter

Calculates the quarter of the year in which a date falls.

An integer, 1-4.

Date and time functions

Quarter(date)

DatePart, Month

Parameter

Description

date

A date/time object in the range 100 AD-9999 AD.

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.

<h3>Quarter Example</h3>

Today, <cfoutput>#DateFormat(Now())#</cfoutput>,
is in Quarter <cfoutput>#Quarter(Now())#</cfoutput>.

Contents > CFML Reference > ColdFusion Functions > Quarter PreviousNext

ColdFusion 9 | ColdFusion 8 | ColdFusion MX 7 | ColdFusion MX 6.1 | ColdFusion MX | Forums | Developer Center | Bug Reporting

Version 6.1

Comments are no longer accepted for ColdFusion MX 6.1. ColdFusion 8 is the current version.

 

Send me an e-mail when comments are added to this page | Comment Report

Current page: http://livedocs.adobe.com/coldfusion/6.1/htmldocs/functa54.htm