Quarter()
Returns a number equal to the quarter in which a date falls
Syntax
Quarter( [<dDate>] ) -> nQuarter
Argument
<dDate> Designates in which quarter the specified date lies. The default is the system date.
Returns
Quarter() returns a number that identifies the quarter in which <dDate> lies.
Description
Returns a number equal to the quarter in which ddate falls. If <ddate> is empty, the system date is employed.
Note
. When no date is specified, the function automatically uses the system date. An empty date returns 0 as a result.
Example
Compute a delivery date: ? "We will deliver in quarter ", Quarter(CTOD ("07/12/1991")), "1991"
Compliance
Quarter() is compatible with CT3’s Quarter().
Platforms
All
Files
Source is dattime2.prg, library is libct.
Seealso
BOQ(), EOQ()