Here you can find the source of formatLastModified(long lastModifiedTime)
public static String formatLastModified(long lastModifiedTime)
//package com.java2s; //License from project: Open Source License import java.text.SimpleDateFormat; import java.util.Date; public class Main { static SimpleDateFormat dateFormat = new SimpleDateFormat("dd MMM yyyy HH:mm"); public static String formatLastModified(long lastModifiedTime) { return dateFormat.format(new Date(lastModifiedTime)); }/*ww w . ja v a2s .co m*/ }