Here you can find the source of getMillisecondStamp(Date date)
public static String getMillisecondStamp(Date date)
//package com.java2s; //License from project: Apache License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getMillisecondStamp(Date date) { DateFormat fmt = new SimpleDateFormat("HHmmssSSS"); return fmt.format(date); }//from w ww .j a v a 2 s. c o m }