List of utility methods to do Time Now
String | getNow() get Now SimpleDateFormat sdf = new SimpleDateFormat(_16DIGIT_DATE_TIME); return sdf.format(new Date()); |
String | getNow() get Now return getNow("yyyy-MM-dd"); |
String | getNow() Get the current timestamp final Calendar cal = Calendar.getInstance(TimeZone.getDefault()); final String DATE_FORMAT = "yyyy-MM-dd_HH-mm-ss"; final java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(DATE_FORMAT); sdf.setTimeZone(TimeZone.getDefault()); return sdf.format(cal.getTime()); |
String | getNow() Get date string as format of "yyyy-MM-dd HH:mm:ss.SSS" SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss.SSS"); sdf.setTimeZone(getDefaultTimeZone()); return sdf.format(getCalendar().getTime()); |
String | getNow() get Now return FORMATTER.format(Calendar.getInstance().getTime());
|
Date | getNow() get Now Date now = new Date(); SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd"); try { return dateFormat.parse(dateFormat.format(now)); } catch (ParseException e) { return null; |
String | getNow() get Now return getISOFormat(new java.util.Date()); |
String | getNow() get Now return formatDateTime(new Date()); |
String | getNow() get Now SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); Date today = new Date(); return format.format(today); |
Date | getNow() get Now return new Date(); |