Here you can find the source of getFormat2TimetagStr()
public static String getFormat2TimetagStr()
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final SimpleDateFormat format2 = new SimpleDateFormat("yyyyMMddHHmmss"); public static String getFormat2TimetagStr() { return format2.format(new Date()); }/*from w w w . j av a 2 s.co m*/ }