List of utility methods to do Hour Format
String | format() format return toInfo(getCalendar());
|
String | format() format Date date = new Date(); return dateFormat.format(date); |
String | format(Calendar date) Formats a date such that it can be included in an HTTP header. DateFormat dateFormat = new SimpleDateFormat(HTTP_DATE_FORMAT); dateFormat.setTimeZone(TimeZone.getTimeZone("GMT")); return dateFormat.format(date.getTime()); |
String | format(Date d) Return the default formatted String for a given date. String format = DATE_FORMATS[0]; SimpleDateFormat sdf = new SimpleDateFormat(format); return sdf.format(d); |
String | format(Date d) format return df.format(d);
|
String | format(Date d) Format the Date timestamp to a human-readable timestamp. return def.format(d);
|
String | format(Date date) format return RFC822_DATE_FORMAT.format(date);
|
String | format(Date date) format if (date == null) { return null; return dateFormat.format(date); |
String | format(Date date) format SimpleDateFormat simpleDateFormat = new SimpleDateFormat(rfc822DateFormat); return simpleDateFormat.format(date); |
String | format(Date date) Formats a Date value into a ISO8601-compliant date/time string.
Calendar cal = Calendar.getInstance();
cal.setTime(date);
return format(cal);
|