Here you can find the source of getTimeStamp(Date date)
public static String getTimeStamp(Date date)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static SimpleDateFormat TimeStampFormat = new SimpleDateFormat("MM:dd.yyyy hh:mm:ss aaa"); public static String getTimeStamp() { return getTimeStamp(new Date()); }//from www . j a va 2s . c o m public static String getTimeStamp(Date date) { TimeStampFormat.format(date); return null; } }