List of utility methods to do Date Format As
String | formatDateYMD(Object date) format Date YMD return formatDate(date, "yyyy-MM-dd"); |
String | formatDateYyyymmddhhmmss(Date date) format Date Yyyymmddhhmmss return new SimpleDateFormat("yyyyMMddHHmmss").format(date); |
String | formatDatum(Date date, Locale locale) Ein Datum localeabhaengig formatieren. if (date != null) { return DateFormat.getDateInstance(DateFormat.MEDIUM, locale).format(date); } else { return ""; |
String | formatDay(Date date) format Day SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd"); return sdf.format(date); |
String | formatDay(java.util.Date d) format Day return yyyyMMdd.format(d);
|
String | formatDDMMYYYY(Date date) Datum formatieren analog zu "31122007). final String result = ddMMyyyy_DATE_FORMAT.format(date); return result; |
String | formatddMMyyyy(Date date) formatdd M Myyyy SimpleDateFormat format = new SimpleDateFormat("dd/MM/yyyy"); return format.format(date); |
String | getDateAsISO8601String(Date date) get Date As ISO String SimpleDateFormat ISO8601FORMAT = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ"); String result = ISO8601FORMAT.format(date); result = result.substring(0, result.length() - 2) + ":" + result.substring(result.length() - 2); return result; |
String | getDateAsISO8601String(Date date) Format a Date using the standard ISO8601 used in XML. SimpleDateFormat format_ISO8601 = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSZ", Locale.US); return format_ISO8601.format(date); |
String | getDateAsISOTimestampString(Date timestamp) get Date As ISO Timestamp String return TIMESTAMP_FORMAT.format(timestamp);
|