java.util.Calendar startTime = null;
java.util.Calendar endTime = null;
String taskTime = "2020-12-16T00:00:55+08:00";
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:SSSXXX");
Date date = sdf.parse(taskTime);
Calendar startCalendar = Calendar.getInstance();
startCalendar.setTime(date);
Date endDate =new java.util.Date();
Calendar endCalendar = Calendar.getInstance();
endCalendar.setTime(endDate);
endTime = endCalendar;
标签:java,endCalendar,util,中间,设置,Date,endDate,Calendar
来源: https://www.cnblogs.com/furenjian/p/14149905.html