Here you can find the source of get_current_date_time_format1_str()
public static String get_current_date_time_format1_str()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { private static final String DATE_TIME_FORMAT1 = "yyyyMMddHHmmss"; public static String get_current_date_time_format1_str() { Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(DATE_TIME_FORMAT1); return sdf.format(cal.getTime()); }//from ww w . j a va 2 s . co m }