Here you can find the source of formatDateTime(ZonedDateTime zonedDateTime)
private static String formatDateTime(ZonedDateTime zonedDateTime)
//package com.java2s; //License from project: Open Source License import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; public class Main { private final static DateTimeFormatter DEFAULT_DATETIME_FORMATTER = DateTimeFormatter .ofPattern("dd/MM/yyyy kk:mm"); private static String formatDateTime(ZonedDateTime zonedDateTime) { return DEFAULT_DATETIME_FORMATTER.format(zonedDateTime); }/*from w w w.j av a 2 s . com*/ }