List of utility methods to do Hour Format
String | format(Date date) format DateFormat fmt = newGMTFormatter();
return fmt.format(date);
|
String | format(Date date) format if (date == null) { throw new NullPointerException(); sdf = new SimpleDateFormat(DEFAULT_PATTERN); return sdf.format(date); |
String | format(Date date) format DateFormat dateFormat = new SimpleDateFormat(DATE_FORMAT_GMT, local); dateFormat.setTimeZone(timeZone); return (date != null ? dateFormat.format(date) : EMPTY); |
String | format(Date date) format return SDF.get().format(date);
|
String | format(Date date) Format the date. DateFormat df = getThreadLocalDateFormat();
return df.format(date);
|
String | format(Date date) format if (date == null) return null; return getFormat(ISO_8601_DATE_Z).format(date); |
Long | format(Date date) format return Long.parseLong(DB_FORMAT.format(date));
|
String | format(Date date) Formats the specified date using the default date format. return dateFormat.format(date);
|
String | format(Date date) format if (date == null) { return "--"; return sdf.format(date); |
String | format(Date date) Format.
SimpleDateFormat sdf = new SimpleDateFormat("yyyyMMddHHmmss"); return sdf.format(date); |