赞
踩
public static int getHowDay(String startTime,String endTime){
LocalDate start = LocalDate.parse(startTime, DateTimeFormatter.ofPattern("yyyy-MM-dd"));
LocalDate end = LocalDate.parse(endTime, DateTimeFormatter.ofPattern("yyyy-MM-dd"));
return (int) (end.toEpochDay() - start.toEpochDay());
}
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。