char[] ac = textZeile.toCharArray();textZeile = "";for (int i = 0; i < ac.length; i++) { if (ac[i] != '[' && ac[i] != ']') textZeile += ac[i];}
SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd");SimpleDateFormat sdf2 = new SimpleDateFormat("dd.MM.yyyy");Date d = sdf1.parse("2002-09-12");String ergebnis = sdf2.format(d); //ergibt: 12.09.2002