feat: There is no way the schedule
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user