Here you can find the source of getCurrent()
public static String getCurrent()
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static final String commonDateFormat = "yyMMdd.HHmmss.SSS"; public static String getCurrent() { SimpleDateFormat sdf = new SimpleDateFormat(commonDateFormat); Date curDate = new Date(); String strDate = sdf.format(curDate); return strDate; }// w w w.j a v a2 s . c o m }