List of utility methods to do Date Format
String | getFormatDate(Date date) get Format Date return getFormatDateTime(date, "yyyy-MM-dd"); |
String | getFormatDate(String format) get Format Date return getFormatDateTime(new Date(), format); |
String | getFormatDate(String format) get Format Date return getFormatDateTime(new Date(), format); |
String | getFormatDateAdd(Date date, int amount, String format) get Format Date Add Calendar cal = new GregorianCalendar(); cal.setTime(date); cal.add(GregorianCalendar.DATE, amount); return getFormatDateTime(cal.getTime(), format); |
String | getFormatDateAdd(Date date, int amount, String format) get Format Date Add Calendar cal = new GregorianCalendar(); cal.setTime(date); cal.add(GregorianCalendar.DATE, amount); return getFormatDateTime(cal.getTime(), format); |
String | getFormatDateTime(Date date, String format) get Format Date Time SimpleDateFormat sdf = new SimpleDateFormat(format); return sdf.format(date); |
String | getFormatDateTime(Date date, String format) get Format Date Time SimpleDateFormat sdf = new SimpleDateFormat(format); return sdf.format(date); |
String | getFormatDateTommorrow(String sourceDate, String format) get Format Date Tommorrow return getFormatDateAdd(getDateFromString(sourceDate, format), 1,
format);
|
String | getFormatDateTommorrow(String sourceDate, String format) get Format Date Tommorrow return getFormatDateAdd(getDateFromString(sourceDate, format), 1,
format);
|
String | getFormatShortTime(Date date) get Format Short Time return getFormatDateTime(date, "yyyy-MM-dd"); |