List of utility methods to do Long Number to Date
String | formatDateHeader(final long date) format Date Header return new SimpleDateFormat(DATE_HEADER_FMT).format(new Date(date)); |
String | formatDateHeader(long millis) format Date Header return RFC822_FORMAT_PATTERN.format(millis);
|
String | formatDateHeader(long value) format Date Header SimpleDateFormat format = new SimpleDateFormat(HTTP_RESPONSE_DATE_HEADER, Locale.US); format.setTimeZone(GMT); return format.format(new Date(value)); |
String | formatDateISO(long millis) format Date ISO Date d = new Date(); d.setTime(millis); return formatDateISO(d); |
String | formatDateTime(long d) Convert date and time to string like "yyyy-MM-dd HH:mm". return new SimpleDateFormat(DATETIME_FORMAT).format(d); |
String | formatDateTime(long d) Convert date and time to string like "yyyy-MM-dd HH:mm". return new SimpleDateFormat(DATETIME_FORMAT).format(d); |
String | formatDateTime(long date) format Date Time return formatDate(new Date(date), DEFAULT_DATETIME_PATTERN); |
String | formatDateTime(long millis) format Date Time Date resultdate = new Date(millis); return datetime.format(resultdate); |
String | formatDateTime(long time) format Date Time SimpleDateFormat format = getTimeFormat();
Calendar calendar = getCalendar(time);
return format.format(calendar.getTime());
|
String | formatDateTime(long timestampEpoch) format Date Time synchronized (dtg) { return dtg.format(new Date(timestampEpoch)); |