java字符串转日期
Date startDate1=null;
Date endDate1=null;
if(!StringUtils.isEmpty(startDate) && !StringUtils.isEmpty(endDate)){
DateFormat format1 = new SimpleDateFormat("yyyy-MM-dd");//转换后的日期格式
startDate1=format1.parse(startDate);
endDate1=format1.parse(endDate);
}