java.text.ParseException: Unparseable date: ""

原因是sdf.parse为'' '' Date d = sdf.parse(""); SimpleDateFormat sdf = new SimpleDateFormat("yy-MM-dd");
Date date;
try {
date = sdf.parse("");
} catch (Exception e) {
date = null;
}
return date;

    推荐阅读