feat: There is no way the schedule

This commit is contained in:
super_liu
2021-09-30 17:58:45 +08:00
parent 9ed1637677
commit 48e816e006
7 changed files with 88 additions and 31 deletions
@@ -21,6 +21,9 @@ import java.util.*;
public class Utils {
public static int subDayNum(String endTime){
if (endTime.length() >= 10) {
endTime = endTime.substring(0, 10);
}
DateTimeFormatter fmt = DateTimeFormatter.ofPattern("yyyy-MM-dd");
LocalDate startDate = LocalDate.parse(new SimpleDateFormat("yyyy-MM-dd").format(new Date()),fmt);
LocalDate endDate = LocalDate.parse(endTime,fmt);