Here you can find the source of getCurrentlyDateTime()
public static String getCurrentlyDateTime()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getCurrentlyDateTime() { SimpleDateFormat dateFormat = new SimpleDateFormat("yyyyMMddHHmmss"); return dateFormat.format(new Date()); }/* ww w .j a v a 2s . c om*/ }