Here you can find the source of convertLongDate(long lDate, String format)
public static String convertLongDate(long lDate, String format)
//package com.java2s; //License from project: Apache License import java.text.SimpleDateFormat; import java.util.Date; public class Main { public static String convertLongDate(long lDate) { return convertLongDate(lDate, "EE - HH:mm"); }/*from ww w.ja v a 2s . c om*/ public static String convertLongDate(long lDate, String format) { Date date = new Date(lDate); SimpleDateFormat dateFormat = new SimpleDateFormat(format); return dateFormat.format(date); } }