List of utility methods to do Now
String | now() now Calendar cal = Calendar.getInstance();
return stringFormatADate(Calendar.getInstance().getTime());
|
String | now() now Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat(DATE_FORMAT_NOW); return sdf.format(cal.getTime()); |
Date | now() now return new Date(); |
String | now() Method to return the current time in the form: yyyy-MM-dd HH:mm:ss SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date d = new Date(); return sdf.format(d); |
String | now() Get today's date. Calendar cal = Calendar.getInstance(); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); return sdf.format(cal.getTime()); |
Date | now() now return new Date(); |
Date | Now() Now return dateFormat.parse(format());
|
String | now() now return sdf.format(new Date()); |
Date | now() now return new Date(System.currentTimeMillis()); |
String | now() now DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd-HH-mm-ss"); Date date = new Date(); return dateFormat.format(date); |