Here you can find the source of nowAs14CharString()
public static String nowAs14CharString()
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.*; public class Main { public static String nowAs14CharString() { final DateFormat format = new SimpleDateFormat("yyyyMMddHHmmss"); return format.format(new Date()); }/*from w w w . j av a2 s . c om*/ }