How to convert UTC DateTime to another Time Zone using Java 8 library?
问题 final Timestamp rawDateTime = Timestamp.valueOf("2031-04-25 18:30:00"); final ZoneId zoneId = ZoneId.of("Asia/Calcutta"); final ZonedDateTime zonedDateTime = ZonedDateTime.ofInstant( Instant.ofEpochMilli(rawDateTime.getTime()), zoneId); // here we are getting output as 2031-04-25T18:30+05:30[Asia/Calcutta] final ZonedDateTime zonedDateTime1 = ZonedDateTime.of(rawDateTime.toLocalDateTime(), zoneId); // here we are getting output as 2031-04-25T18:30+05:30[Asia/Calcutta] But I want to get the