Here you can find the source of getNowDateTimeStrConcise()
public static String getNowDateTimeStrConcise()
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getNowDateTimeStrConcise() { return getDateTimeStrConcise(new Date()); }/*from w w w .j a va2s .c o m*/ public static String getDateTimeStrConcise(Date d) { if (d == null) return ""; SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmssSSSZ"); String str = sdf.format(d); return str; } }