0
How will you get the current date using local datetime api of java8 in Java8?

Open 1 Answers 25 Views Education

How will you get the current date using local datetime api of java8 in Java8?

1 Answer

0

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);

by (53.7k points)
...