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