try {
String strFormat = "yyyy-MM-dd";
SimpleDateFormat sdf = new SimpleDateFormat(strFormat);
System.out.println(sdf.parse("2009-06-15"));
}catch(java.text.ParseException e){
System.out.println("转换发生错误");
}