Quarter

Description

Quarter calculates and returns an integer (1-4) of the year quarter in which the date falls.

Category

Date and time functions

Syntax

Quarter(date) 

See also

DatePart, Month

Parameters

Parameter
Description
date
Any date.

Usage

Year values 0 - 29 are interpreted as 21st century dates. Year values 30 - 99 are interpreted as 20th century dates.

When passing a date/time value as a string, enclose it in quotes. Otherwise, it is interpreted as a number representation of a date/time object.

Example

<!--- 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>