Java tutorial
//package com.java2s; import java.sql.Date; public class Main { public static String getDateTime(long milliseconds) { Date date = new Date(milliseconds); //return DateFormat.getDateTimeInstance().format(new Date()); return date.toLocaleString(); } }