List of utility methods to do Hour Format
String | formatFileDate(Date from) format File Date return dateFormatFor(SIMPLE_DATE_FORMAT, "UTC").format(from); |
String | formatFilesystemOrder(Date date) Formats the given date to obtain a String date to order files in the filesystem. return FILESYSTEM_ORDER.format(date);
|
String | formatForCookieExpiry(Date date) format For Cookie Expiry return formatDate(date, PATTERN_RFC1123_HYPHENS);
|
String | formatForFileName() format For File Name return formatForFileName(new Date()); |
String | formatForHttpHeader(long unixTime) Can be used to format a unix timestamp into http header compatible strings. return getRFC1123_DateFormat().format(new Date(unixTime)); |
String | formatFromDate(Date date) format From Date SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return sdf.format(date); |
Date | formatFromString(String date) format From String SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); try { return sdf.parse(date); } catch (ParseException e) { return null; |
String | formatFullDate(Object date) format Full Date return formatDate(date, "yyyy-MM-dd HH:mm:ss"); |
String | formatFullTime(Date date) format Full Time return formatFullTime(date, TimeZone.getTimeZone("UTC")); |
String | formatHDate(java.util.Date date) format H Date return format(date, "yyyy-MM-dd HH:mm:ss"); |