Previously, converting between Date and LocalDateTime was verbose. Now:
// Old way (still works) Date date = DateUtil.parse("2026-05-02"); // New way in Hutool 26 LocalDateTime ldt = LocalDateTimeUtil.parse("2026-05-02", "yyyy-MM-dd"); LocalDateTime beginOfDay = LocalDateTimeUtil.beginOfDay(ldt); Duration duration = LocalDateTimeUtil.between(ldt, LocalDateTime.now()); hutool 26
In the fast-paced world of Java development, repetitive code tasks—such as date manipulation, file I/O, and type conversions—consume valuable time. For years, Hutool has been the silent hero for millions of Chinese and international developers, offering a simple, static-method alternative to Apache Commons and Guava. With the release of Hutool 26 , the framework has taken a significant leap forward. LocalDateTime beginOfDay = LocalDateTimeUtil.beginOfDay(ldt)