LocalDateTime
LocalDateTime ldt = LocalDateTime.now();
LocalDateTime todayZero = LocalDateTime.of(ldt.getYear(), ldt.getMonthValue(), ldt.getDayOfMonth(), 0, 0, 0);
或
LocalDateTime.now().toLocalDate().atStartOfDay();
DateTimeFormatter DATE_ZERO_FORMAT = DateTimeFormatter.ofPattern("yyyyMMdd");
LocalDateTime ldt = LocalDateTime.now();
String todayZeroStr = ldt.format(DelegateActiveComp.DATE_ZERO_FORMAT);
SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
Date activationTime = dateFormat.parse(dateFormat.format(new Date()));