Here you can find the source of getCurrentDate()
public static String getCurrentDate()
//package com.java2s; import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getCurrentDate() { DateFormat dateFormat = new SimpleDateFormat("ddMMyyyyHHmmss"); Date date = new Date(); return dateFormat.format(date); }/*from w w w . j a v a 2 s. c o m*/ }