List of utility methods to do Date Now
String | getCurrentDateStr() get Current Date Str return formatDate(new Date()); |
String | getCurrentDateStr() get Current Date Str Date now = new Date(); return yyyyMmDd.format(now); |
String | getCurrentDateStr(String pattern) get Current Date Str return getDateString(new Date(), pattern); |
String | getCurrentDateString() get Current Date String return dateToString(getCurrentDateTime(), ISO_EXPANDED_DATE_FORMAT);
|
String | getCurrentDateString() get Current Date String Date date = new Date(); return formatDate(DDMMYYHHMMSS, date); |
String | getCurrentDateString() Returns the current date in string form. return formatDateTime(Calendar.getInstance().getTime());
|
String | getCurrentDateString(String dateFormat) get Current Date String Calendar cal = Calendar.getInstance(TimeZone.getDefault()); SimpleDateFormat sdf = new SimpleDateFormat(dateFormat); sdf.setTimeZone(TimeZone.getDefault()); return sdf.format(cal.getTime()); |
String | getCurrentDateString(String format) get Current Date String Date time = GregorianCalendar.getInstance().getTime(); return new SimpleDateFormat(format).format(time); |
String | getCurrentDateTime() Returns the current date formatted for the UI return toUIDateTimeString(new Date()); |
String | getCurrentDateTime() get Current Date Time DateFormat formatter = new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); Calendar calendar = Calendar.getInstance(); calendar.setTimeInMillis(System.currentTimeMillis()); return formatter.format(calendar.getTime()); |