List of utility methods to do Hour Format
String | format(Date date) format return date == null ? null : getParser().format(date);
|
String | format(Date date) format if (date == null) { return null; SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); return sdf.format(date); |
String | format(Date date) Format a date object. return DATE_FORMAT.get().format(date);
|
String | format(Date date) Formats a Date into a Date-Time value used by SpreadsheetML. StringBuffer sb = new StringBuffer(getDateFormat().format(date)); sb.append("T"); sb.append(getTimeFormat().format(date)); return sb.toString(); |
String | format(Date date) format SimpleDateFormat formatter = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); String dateString = formatter.format(date); return dateString; |
String | format(Date date, String dateFormat) format if (date != null) { SimpleDateFormat format = new SimpleDateFormat(dateFormat); String dateString = format.format(date); return dateString; return null; |
String | format(Date date, String format) format SimpleDateFormat df = new SimpleDateFormat(format); return df.format(date); |
String | format(Date date, String format) format return new SimpleDateFormat(format).format(date); |
String | format(Date date, String pattern) format return date == null ? " " : new SimpleDateFormat(pattern).format(date); |
String | format(Date date, String ptrn) Formats passed date with specified pattern. java.text.DateFormat format = new java.text.SimpleDateFormat(ptrn); return format.format(date); |