Here you can find the source of formatDate_ddMMYYYYHHmmss(ZonedDateTime now)
public static String formatDate_ddMMYYYYHHmmss(ZonedDateTime now)
//package com.java2s; //License from project: Apache License import java.time.ZonedDateTime; import java.time.format.DateTimeFormatter; public class Main { /**/*from www . j av a 2 s.c o m*/ * @param when The instant * @return The instant formatted as "ddMMYYYYHHmmss" (01092015121011) */ static DateTimeFormatter dateTimeFormatPattern = DateTimeFormatter.ofPattern("ddMMyyyyHHmmss"); public static String formatDate_ddMMYYYYHHmmss(ZonedDateTime now) { return now.format(dateTimeFormatPattern); } }