0 votes
13 views

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

in Education by (51.6k points)

1 Answer

0 votes

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 (51.6k points)

Related questions

0 votes
1 answer 12 views
0 votes
1 answer 10 views
0 votes
1 answer 10 views
10 views asked Nov 8, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 17 views
0 votes
1 answer 12 views
12 views asked Nov 8, 2020 in Education by Editorial Staff (51.6k points)
0 votes
1 answer 12 views
0 votes
1 answer 10 views
0 votes
1 answer 11 views
0 votes
0 answers 24 views
0 votes
1 answer 21 views
...