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