List of utility methods to do Hour Format
String | format(Date date) format return COMMON_FORMAT.get().format(date);
|
String | format(Date date) format return formatDate(date, _DEFAULT4);
|
String | format(Date date) format return getDateFormat(e).format(date);
|
String | format(Date date) Formats a string in known date-time form from a date object, using default time zone. return format(date, DEFAULT_TIME_ZONE);
|
String | format(Date date) format DateFormat format = new SimpleDateFormat(DATE_FORMAT); format.setTimeZone(UTC); return format.format(date); |
String | format(Date date) format return format(date, true);
|
String | format(Date date) format return date == null ? "" : getDateFormat().format(date); |
String | format(Date date) format return getDateFormat().format(date);
|
String | format(Date date) format return format(date, FORMAT_FULL_GENERIC);
|
String | format(Date date) Format a Date object as a valid UTC Date String, per OAI-PMH guidelines http://www.openarchives.org/OAI/openarchivesprotocol.html#DatestampsResponses SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss'Z'"); sdf.setTimeZone(TimeZone.getTimeZone("ZULU")); String ret = sdf.format(date); return ret; |