List of utility methods to do Long Number to Date
String | formatDate(long millis, Locale locale) format Date Date d = new Date(); d.setTime(millis); return formatDate(d, locale); |
String | formatDate(long millis, String dateFormat) format Date SimpleDateFormat sdf = new SimpleDateFormat(); if (dateFormat == null) { throw new NullPointerException("Date format cannot be null. Please provide valid date format."); sdf.applyPattern(dateFormat); return sdf.format(new Date(millis)); |
String | formatDate(long millisecond, String format) format Date DateFormat dateFormat = new SimpleDateFormat(format); Date date = new Date(millisecond); return dateFormat.format(date); |
String | formatDate(long ms) format Date return formatDate(new Date(ms), defaultFormat); |
String | formatDate(long ms) format Date return formatDate(new Date(ms)); |
String | formatDate(long p_millis) Formats an epoch date in a standard way: MM/dd/yyyy Date date = new Date(p_millis); DateFormat formatter = new SimpleDateFormat("MM/dd/yyyy"); return formatter.format(date); |
String | formatDate(long t) format Date if (t <= 0) return ""; java.text.DateFormat format1 = new java.text.SimpleDateFormat("hh:mm:ss"); return format1.format(new Date(t)); |
String | formatDate(long time) format Date return formatDate(new Date(time)); |
String | formatDate(long time) format Date SimpleDateFormat format = getDateFormat();
Calendar calendar = getCalendar(time);
return format.format(calendar.getTime());
|
String | formatDate(long time) format Date return formatDate(new Date(time)); |