使用Java 8的 Instant 扣除一天後轉成 Date 。 Date date = Date.from(Instant.now().minus(1, ChronoUnit.DAYS)); System.out.println(date); ...
確定! 回上一頁