List of utility methods to do Date to String
String | date2string(Date date) Utility routine to convert a date to a string. return m_stdDateFormat.format(date).toString();
|
String | date2String(Date date) date String String time = null; try { SimpleDateFormat format = new SimpleDateFormat("yyyyMMddHHmm"); time = format.format(date); } catch (Exception e) { e.printStackTrace(); return time; ... |
String | date2String(Date date, DateFormat dateFormat) date String if (date == null) return null; return dateFormat.format(date); |
String | date2String(Date date, int _iType) date String SimpleDateFormat sdf = new SimpleDateFormat(time_format); String strTemp = sdf.format(date); SimpleDateFormat formatter = null; switch (_iType) { case 0: strTemp = strTemp.substring(0, 8); break; case 2: ... |
String | Date2String(Date date, String DateFormat) Date String SimpleDateFormat sdf = new SimpleDateFormat(DateFormat); try { return sdf.format(date); } catch (Exception e) { e.printStackTrace(); return null; |
String | date2string(Date date, String format) datestring SimpleDateFormat sdf = new SimpleDateFormat(format); String result = sdf.format(date); sdf = null; return result; |
String | date2String(Date date, String format) date String return getDate2Str(format, date);
|
String | date2String(Date date, String format) date String if (date == null) return ""; SimpleDateFormat sdformat = new SimpleDateFormat(format); return sdformat.format(date); |
String | Date2String(Date date, String formatPattern) Date String return Date2String(date, formatPattern, null, null);
|
String | date2String(Date date, String pattern) Date --> String java.text.SimpleDateFormat dateFormat = new java.text.SimpleDateFormat(pattern); return dateFormat.format(date); |