LocalDate is just a date and has days’ precision, not nanosecond precision. How I can create a LocalDate. The pattern is same like pattern to create an Instant.
LocalDate now = LocalDate.now();
LocalDate dateOfBirth = LocalDate.of(1875, Month.OCTOBER, 31);
Of() method is a static method in LocalDate Class. See the month field which is Enumeration here, so this field is more clear as compare to Calendar class set method month field where I need to call 3 for Month.APRIL to represent the month of April.