Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- String input = "2019-06-18T19:04:30.515 UTC".replace( " UTC" , "Z" ) ;
- Instant instant = Instant.parse( input ) ;
- ZoneId z = ZoneId.of( "Pacific/Auckland" ) ; // Or "Europe/Berlin" etc.
- ZonedDateTime zdt = instant.atZone( z ) ;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement