Java tutorial
//package com.java2s; public class Main { public static String getTimeStamp() { try { // SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmssSSS", Locale.getDefault()); // return df.format(new Date()); return String.valueOf(System.currentTimeMillis()); } catch (Exception e) { e.printStackTrace(); return null; } } }