面试查询时间修改
This commit is contained in:
@@ -72,8 +72,8 @@ public class CoolDateUtils {
|
||||
* @param day
|
||||
* @return
|
||||
*/
|
||||
public static Date getDateFormatDay(int day){
|
||||
LocalDate today = LocalDate.now();
|
||||
public static Date getDateFormatDay(Date date,int day){
|
||||
LocalDate today = date.toInstant().atZone(ZoneId.systemDefault()).toLocalDate();
|
||||
LocalDate thirdDay = today.plusDays(day);
|
||||
LocalDateTime thirdDayMidnight = LocalDateTime.of(thirdDay, LocalTime.MIDNIGHT);
|
||||
LocalDateTime thirdDay235959 = thirdDayMidnight.with(LocalTime.MAX);
|
||||
|
||||
Reference in New Issue
Block a user