转换固定格式日期:
//截止日期
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
SimpleDateFormat sdfFull = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
Date date = new Date();
String todayDate = sdf.format(date);
String endDateString = todayDate + " 23:59:59";
Date endDate = sdfFull.parse(endDateString);