Date preDate = null;
String sDate = workForm.getPreDate();
SimpleDateFormat fordate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
preDate = fordate.parse(sDate);
String sDate = workForm.getPreDate();
SimpleDateFormat fordate = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
preDate = fordate.parse(sDate);