Arpit Bhatt·Jun 20Java Date and Time API (Modern Guide — Java 8+)Handling dates and times used to be messy in Java (with Date, Calendar). To fix this, Java introduced the new Date & Time API in Java 8…
Sparsh Agarwal·Mar 16, 2025All about Date and Time in Java 21Date and Time manipulation has not been that easy, let’s see how it works now with newer versions of Java. While working with Java, in…
Smita Kothari·Mar 14, 2025Converting a 12-Hour Time Format String to LocalDateTime in JavaIn Java, the LocalDateTime class is part of the java.time package and represents a date-time without a time-zone. When working with…
Vinotech·Sep 25, 2024Understanding Java’s Date and Time API: A Detailed Exploration of java.timeIn Java, the java.time package introduced in Java 8 provides a comprehensive set of classes to work with date and time. These classes are…
InTowards DevbySachith Ariyathilaka·May 25, 2024New Date Time API in JavaThe new date-time API was introduced with Java 8 to avoid the main drawbacks of the old date-time API. Following are the main drawbacks…
Elvis Ciotti·May 15, 2023Compare LocalDatetime ignoring nanosecondsIn case your test instantiates a date with LocalDateTime.now() , stores it into a JPA, retrieves it back, and compares, the simple…
Elvis Ciotti·Jan 12, 2023Hibernate 6: how to customize JSON field serializer to support LocalDateTime. Spring Boot 3 configvia hibernate.type.json_format_mapper property and class wrapping JacksonJsonFormatMapperA response icon1A response icon1
조지헌·Jan 4, 2023[Junit] LocalDateTime.now Mocking 처리하기개발을 하다보면 현재 시간을 넣는 로직이 필연적으로 존재합니다. 가령 마지막으로 패스워드 변경한 날짜 기능만 해도 LocalDateTime.now() 메서드를 필요로 합니다.