List of utility methods to do Date Now
String | currentDate(int dateStyle) Current date as formatted string representation. DateFormat df = DateFormat.getDateInstance(dateStyle); return df.format(new Date()); |
String | currentDate(String format) current Date SimpleDateFormat dateFormat = new SimpleDateFormat(isBlank(format) ? "yyyy-MM-dd HH:mm:ss" : format); return dateFormat.format(new Date()); |
String | currentDate(String format, Locale locale) current Date SimpleDateFormat simpleDateFormat = new SimpleDateFormat(format, locale); simpleDateFormat.setLenient(false); return simpleDateFormat.format(new Date()); |
String | currentDate(String format, String locale) current Date return formatDate(new Date(), format, locale); |
String | currentDate2String() current Date String return date2String(new Date()); |
String | currentDate2String() current Date String return date2String(new Date()); |
String | currentDate_DDMMYY() Speaking method for easier scripting. return currentDate(DateFormat.SHORT);
|
String | currentDateAsString() current Date As String return toString(Calendar.getInstance());
|
String | currentDatePath(String basePath) current Date Path String backupTime = basePath + "/" + COMPACT_DATE_ID.format(new Date()); return backupTime; |
String | currentDateStr() current Date Str return toDateString(new Date(), DEFAULT_FORMAT_DATE); |