Quarter

 

Purpose:

Returns the quarter of the year (1..4)

Parameter:

Date    

Boolean         (optional) sets whether the quarter calculation should be returned relative to the year (1..4) or in absolute terms since 1.1.0001 (1..). Default: False (relative).

Return value:

Number

Example:

Quarter(Date("01.01.2015"))           Result: 1

Quarter(Date("01.05.2015"))           Result: 2

Quarter(Date("01.05.2015"),true)     Result: 8058