Pattern matching in PostgreSQL?
select substr(
        substring('SAPCC_XX_ZZZ_Bit1T1Class_XXX_201506235T335656_XXX_XX_XXXXXX'
                  from 
                  '_[0-9]+T[0-9]+_'
                 ), 2, 8
             )::date