1.

How Will You Get The Instant Of Current Date In Terms Of Milliseconds Using Java8?

Answer»

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

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



Discussion

No Comment Found