How will you get the current date using local datetime api of java8 in Java8?
Following code gets the current date using local datetime api -
//Get the current date
LocalDate today = LocalDate.now();
System.out.println("Current date: " + today);