Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Calendar; public class Main { public static String getDateFromMillies(long milliSeconds, String dateFormat) { SimpleDateFormat formatter = new SimpleDateFormat(dateFormat); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(milliSeconds); return formatter.format(calendar.getTime()); } }