Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static String msToDate(String ms) { long miliseconds = Long.parseLong(ms); SimpleDateFormat sdf = new SimpleDateFormat("MM/dd/yy hh:mm aaa"); Calendar c = Calendar.getInstance(); c.setTimeInMillis(miliseconds); return sdf.format(c.getTime()); } }