Java tutorial
//package com.java2s; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String IntToDate(long pTime) { Date vD = new Date(); if (pTime != 0) vD.setTime(pTime); SimpleDateFormat vDF = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return vDF.format(vD); // return (String) DateFormat.format("yyyy-MM-dd hh:mm:ss", vTime); } }