Here you can find the source of getDateFormat()
public static DateTimeFormatter getDateFormat()
//package com.java2s; //License from project: Open Source License import java.time.format.DateTimeFormatter; public class Main { public static DateTimeFormatter getDateFormat() { return DateTimeFormatter.ofPattern("dd-MM-yyyy HH:mm:ss"); }/*from w w w .j a v a2 s. co m*/ }