List of utility methods to do Date Format
String | getDisplayDate(Date date, String format) get Display Date SimpleDateFormat formatter = new SimpleDateFormat(format, Locale.getDefault()); return formatter.format(date); |
String | getFormatedDate(Date date, String format) used to convert the specified date to the specified format DateFormat dateFormat = new SimpleDateFormat(format, Locale.getDefault()); return dateFormat.format(date); |
String | dateFormat(String sdate, String format) date Format SimpleDateFormat formatter = new SimpleDateFormat(format); java.sql.Date date = java.sql.Date.valueOf(sdate); String dateString = formatter.format(date); return dateString; |
String | dateFormat(String sdate, String format) date Format SimpleDateFormat formatter = new SimpleDateFormat(format); java.sql.Date date = java.sql.Date.valueOf(sdate); String dateString = formatter.format(date); return dateString; |
String | formatcurrentDate(int format) formatcurrent Date return formatDate(new Date(), format, ""); |
String | formatDataTime(Date date) format Data Time return DATETIME_FORMAT.format(date);
|
String | formatDate(Date date) format Date return DATE_FORMAT_YYYYMMDD_HHMMSS.format(date);
|
String | formatDate(Date date) format Date return FORMATTER.format(date);
|
String | formatDate(Date date) format Date return sdf.format(date);
|
String | formatDate(Date date, String pattern) format Date return formatDate(date, pattern, Locale.getDefault());
|