The following SQL statement: SELECT TD_QUARTER_BEGIN(DATE'2012-01-15','COMPATIBLE'); returns 12/01/01.