xHarbour Reference Documentation > Function Reference xHarbour Developers Network  

Quarter()

Returns the quarter a date belongs to.

Syntax

Quarter( [<dDate>] ) --> nQuarter

Arguments

<dDate>
An expression returning a Date value. It defaults to Date().

Return

The function returns a numeric value between 1 and 4 indicating the quarter <dDate> belongs to, or zero on error.

Info

See also:Day(), Month(), Year()
Category: CT:DateTime , Date and time
Source:ct\dattime2.c
LIB:xhb.lib
DLL:xhbdll.dll


Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe