Java tutorial
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.text.DateFormat; import java.util.Date; public class Main { /** * Borrowed from Hasham Ali, very useful module. * */ private static DateFormat _df = new SimpleDateFormat("K:mm a | MMMMMMMMM dd, yyyy"); public static String formattedDate(String timestamp) { return _df.format(new Date(Long.parseLong(timestamp) * 1000L)); } }