LocalDate Class In Java 8

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.

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.

Leave a Reply