String s;
Format formatter;
Date date = new Date();
formatter = new SimpleDateFormat("yyMMdd");
java.util.Date date1 = ((DateFormat) formatter).parse(birthDate);
s = formatter.format(date1);
to format a date from yyyy-MM-dd to yyMMdd, but its not working. Please help.