String date = "2011-11-11";
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd");
try{
Date mydate = format.parse(date);
}catch(ParseException e){
e.printStackTrace();
}