Here you can find the source of getReadableDate(long longTime)
public static String getReadableDate(long longTime)
//package com.java2s; //License from project: Open Source License import java.text.DateFormat; import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String getReadableDate(long longTime) { DateFormat dateFormat = new SimpleDateFormat("yyyy/MM/dd HH:mm:ss"); Date date = new Date(longTime); return dateFormat.format(date); }/* ww w . jav a 2 s . com*/ }