List of utility methods to do Long Number to Date
String | formatDate(long date) format Date SimpleDateFormat sdf = new SimpleDateFormat("mm:ss"); return sdf.format(new Date(date)); |
String | formatDate(Long date) Formats a date. if (date == null) { return null; return formatDate(new Date(date)); |
String | formatDate(Long date, String fmt) format Date return getDateFormat(fmt).format(date);
|
String | formatDate(long date, String format) format Date final DateFormat dateFormat = new SimpleDateFormat(format); if (date > 0) return dateFormat.format(date); return null; |
String | formatDate(long date, String langStr) format Date DateFormat df = SimpleDateFormat.getDateTimeInstance(DateFormat.FULL, DateFormat.FULL,
Locale.forLanguageTag(langStr));
return df.format(date);
|
String | formatDate(long dateValue) format Date return simpleFormat.format(new Date(dateValue)); |
String | formatDate(long epochMillis) Standard Date/time format for CSV files if (epochMillis != 0) { Date date = new Date(epochMillis); return DateFormat.getDateInstance(DateFormat.SHORT).format(date); } else { return " "; |
String | formatDate(long millis) Format date for QuakeML SimpleDateFormat dateF = new SimpleDateFormat(DATE_FORMAT); dateF.setTimeZone(TimeZone.getTimeZone("UTC")); Date date = new Date(millis); return dateF.format(date); |
String | formatDate(long millis) Formats the given date (as elapsed milliseconds) using the default format 'yyyy/MM/dd HH:mm:ss'. return DEFAULT_DATE.format(new Date(millis)); |
String | formatDate(long millis) format Date return date_sdf.format(new Date(millis)); |