select convert(concat(substring('062013',3,4),'-',substring('062013',1,2),'-','01'), date); converter uma string em data !