Java Time API
Some important things that we have to know about the java.time API is the following:
Is an evolution from the previous java.util.Date (Calendar, TimeZone & DateFormat) Instances of time/date now are immutable. (This is importat for lambda expressions) Time and Date operations now are thread safe. The API support strong typing, which enables you to write better code. A quick glance to the Date methods
import java.time.*; public class DateOperations { private void operations() throws Exception { LocalDate localDate = LocalDate.
[Read More]