List of utility methods to do Date to String
String | date2String(Date source, String formatString) date String return date2String(source, new SimpleDateFormat(formatString)); |
String | date2String(Date value) date String if (value != null) { SimpleDateFormat date = new SimpleDateFormat("yyyy/MM/dd"); return date.format(value); return ""; |
String | date2String(java.util.Date date, String format) date String if (date == null) { return null; if (format == null || "".equals(format)) { format = defaultFormat; SimpleDateFormat simpleDateFormat = new SimpleDateFormat(format); String dateOfStr = ""; ... |
String | date2String(java.util.Date date, String pattern) date String if (date == null) { throw new java.lang.IllegalArgumentException("timestamp null illegal"); if (pattern == null || pattern.equals("")) { pattern = PATTERN_STANDARD; ; SimpleDateFormat sdf = new SimpleDateFormat(pattern); ... |
String | date2String(String formater, Date aDate) date String if (formater == null || "".equals(formater)) return null; if (aDate == null) return null; return new SimpleDateFormat(formater).format(aDate); |
String | date2String(String pattern, Date date) date String String retStr = ""; java.text.SimpleDateFormat ff = new java.text.SimpleDateFormat(); ff.applyPattern(pattern); retStr = ff.format(date); return retStr; |
String | date2String2(Date date) date String SimpleDateFormat formatter = new SimpleDateFormat(dateFormat7); String dateString = formatter.format(date); return dateString; |
String | date2StringISO(Date date) Erzeugt einen String im Format YYYY-MM-DD return new SimpleDateFormat("yyyy-MM-dd").format(date); |
String | date2StringMD(Date date) date String MD DateFormat format1 = new SimpleDateFormat("MMdd"); return format1.format(date); |
String | date2StringPattern(Date value, String pattern) date String Pattern if (value != null) { SimpleDateFormat dateTimeNoSlash = new SimpleDateFormat(pattern); return dateTimeNoSlash.format(value); return ""; |