Here you can find the source of zonedDateTime(String date, ZoneId zoneId)
public static ZonedDateTime zonedDateTime(String date, ZoneId zoneId)
//package com.java2s; //License from project: Open Source License import java.time.LocalDateTime; import java.time.ZoneId; import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; public class Main { private static final DateTimeFormatter formatter = DateTimeFormatter.ofPattern("yyyy-MM-dd HH:mm"); public static ZonedDateTime zonedDateTime(String date, ZoneId zoneId) { return ZonedDateTime.of(LocalDateTime.parse(date, formatter), zoneId); }// w w w. j a va 2 s.c o m }