Here you can find the source of formatLocalDateTimeToString(LocalDateTime date)
public static String formatLocalDateTimeToString(LocalDateTime date)
//package com.java2s; //License from project: Open Source License import java.time.LocalDateTime; import java.time.format.DateTimeFormatter; public class Main { public static final DateTimeFormatter localDateTimeFormatter = DateTimeFormatter.ofPattern("d MMM yyyy HH:mm"); /**//from w w w . j av a2 s . com * Formats a LocalDateTime into a string */ public static String formatLocalDateTimeToString(LocalDateTime date) { return date.format(localDateTimeFormatter); } }