Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String timeStamp2String(String timestampString, String formats) { Long timestamp = Long.parseLong(timestampString) * 1000; String date = new SimpleDateFormat(formats).format(new Date(timestamp)); return date; } }