List of utility methods to do Now
String | getAllnowTime() get Allnow Time SimpleDateFormat df = new SimpleDateFormat(LONG_TIME_FORMAT); String nowtime = df.format(Calendar.getInstance().getTime()); return nowtime; |
String | getDisplayDateNow() get Display Date Now Date date = new Date(); SimpleDateFormat formatter = new SimpleDateFormat("dd/MM/yyyy"); String cs = formatter.format(date); return cs; |
String | getFormatNowDateTime(String formatStr) get Format Now Date Time Calendar nowtime = Calendar.getInstance(); java.text.SimpleDateFormat sdf = new java.text.SimpleDateFormat(formatStr); return sdf.format(nowtime.getTime()); |
String | getFormattedDateNow(@Nonnull final String sFormat) get Formatted Date Now return formatDate(sFormat, new Date()); |
String | getInviteCodeByNowDate() get Invite Code By Now Date SimpleDateFormat sdf = new SimpleDateFormat("MMddHHmmssMs"); String dateStr = sdf.format(new Date()); return getRandomInteger() + dateStr; |
String | getShortNowTime() get Short Now Time return getNowTime(yyyyMMdd);
|
String | getStringNowTime() get String Now Time Date date = new Date(); String dateStr = dateFormat(date); return dateStr; |
String | getStringOfNowDate(String fFormatStr) get String Of Now Date String nowDateString = dateTypeToString(new Date(), fFormatStr); return nowDateString; |
String | getTimeNow() get Time Now Calendar cal = Calendar.getInstance(); cal.getTime(); SimpleDateFormat sdf = new SimpleDateFormat("HH:mm:ss"); return sdf.format(cal.getTime()); |
String | getTimeNow(Date theTime) This method returns the current date time in the format: MM/dd/yyyy HH:MM a return getDateTime(timePattern, theTime);
|