Get Even More Visitors To Your Blog, Upgrade To A Business Listing >>

Convert Java ZonedDateTime to Date


ZonedDateTime can be converted to Java Date by converting it to an instance first,

Date date = Date.from(ZonedDateTime.now().toInstant());


https://docs.oracle.com/javase/8/docs/api/java/time/ZonedDateTime.html


This post first appeared on Devdummy, please read the originial post: here

Share the post

Convert Java ZonedDateTime to Date

×

Subscribe to Devdummy

Get updates delivered right to your inbox!

Thank you for your subscription

×