Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getDate(Long timestamp) { Date date = new Date(timestamp); SimpleDateFormat dateformat = new SimpleDateFormat("MMM dd, yyyy HH:mm:ss"); return (dateformat.format(date)); } }