Here you can find the source of convertDateToZonedDateTime(Date date, String timezone)
private static ZonedDateTime convertDateToZonedDateTime(Date date, String timezone)
//package com.java2s; //License from project: Apache License import java.time.ZoneId; import java.time.ZonedDateTime; import java.util.Date; public class Main { private static ZonedDateTime convertDateToZonedDateTime(Date date, String timezone) { if (timezone == null || timezone.equals("")) { return date.toInstant().atZone(ZoneId.systemDefault()); }// w w w . j ava2 s . c o m return date.toInstant().atZone(ZoneId.of(timezone)); } }