FastFoodCoding

Login


Connect with one of the following accounts





Login

Please wait while we redirect...

Views: 601   



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 = Instant.now();
Date date = Date.from(instant);



On By


Top Tutorials

Top Questions

Top Articles

Top Blogs

Top News