0
How will you get the instant of current date in terms of milliseconds using java8 in Java8?

Open 1 Answers 33 Views Education

How will you get the instant of current date in terms of milliseconds using java8 in Java8?

1 Answer

0

How will you get the instant of current date in terms of milliseconds using java8 in Java8?

Following code gets the instant of current date in terms of milliseconds -

//Get the instant of current date in terms of milliseconds

Instant now = currentDate.toInstant();

by (53.7k points)
...