$quarter(calendar,date)

$quarter(calendar,date) returns the start of the quarter in which the given date falls according to the given calendar.

For example, if ${book date} is January 5, 2005 and the quarter in the Fiscal calendar in which 1/5/2005 falls starts on 11/28/2004, then the following expression will return 11/28/2004:

$quarter(Fiscal,${book date})