List of utility methods to do Now
Date | now() Returns the current system date return new Date(); |
String | now() Get today date and current time in format: yyyyMMdd_HHmm. final Calendar calendar = Calendar.getInstance(); final SimpleDateFormat formatter = new SimpleDateFormat(FORMAT); return formatter.format(calendar.getTime()); |
long | now() now return System.currentTimeMillis();
|
String | now() now Date d = new Date(); DateFormat df = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.MEDIUM); return df.format(d); |
String | now() now return new SimpleDateFormat(DATE_FORMAT_NOW, DATE_LOCALE).format(Calendar.getInstance().getTime()); |
String | now() now return formatTime(today());
|
String | now() now return datetimeToStr(new Date()); |
String | now() now String now = dateFormat.format(new Date()); now = now.substring(0, 26) + ":" + now.substring(26, 28); return now; |
String | now() Get current date and time formatted as ISO 8601 string. return fromCalendar(GregorianCalendar.getInstance());
|
String | now() now return dateToString(new Date()); |