Connect with one of the following accounts


Please wait while we redirect...

Views: 836   

java.time.Instant introduced in Java8 and it represents instantaneous point on the time-line.

Converting Date to Instant

Date date = new Date();
Instant instant = date.toInstant();

Converting Instant to Date

Instant instant =;
Date date = Date.from(instant);

On By

Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News