Java tutorial
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.*; public class Main { public static String convertMillis(long millis) { return new SimpleDateFormat("\n[MM/dd/yyyy hh:mm:ss aaa] ", Locale.getDefault()).format(millis); } }