List of utility methods to do Hour Format
String | formatDateTime(Date d) format Date Time return formatDateTime(d, DATETIME_PATTERN);
|
String | formatDateTime(Date d) format Date Time return format(d, DATETIME_FORMAT);
|
String | formatDateTime(Date d) format Date Time DateFormat df = new SimpleDateFormat("hh:mm:ss - dd/MM/yyyy"); Calendar c = Calendar.getInstance(); c.setTime(d); return df.format(c.getTime()); |
String | formatDateTime(Date date) format Date Time return formatDate(date, "EEE, d MMM yyyy HH:mm:ss"); |
String | formatDateTime(Date date) format Date Time SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss"); sdf.setTimeZone(TimeZone.getTimeZone("UTC")); return sdf.format(date); |
String | formatDatetime(Date date) format Datetime DateFormat dateFormat = new SimpleDateFormat(DATE_TIME_FORMAT); return dateFormat.format(date); |
String | formatDateTime(Date date) Formats a date time if (date == null) { return ""; return dateFormatter.format(date) + " " + timeFormatter.format(date); |
String | formatDateTime(Date date) format Date Time return formatTime(date) + ' ' + formatDate(date); |
String | formatDateTime(Date date) format Date Time SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return dateFormat.format(date); |
String | formatDateTime(Date date) Format the Date object to string with format "yyyy-MM-dd HH:mm:ss" if (date != null) { synchronized (SDF_DETAIL) { return SDF_DETAIL.format(date); } else { return null; |