List of utility methods to do Today
String | getToday() get Today SimpleDateFormat sdf = new SimpleDateFormat(_8DIGIT_DATE_2); return sdf.format(new Date()); |
Date | getToday() get Today Calendar cal = Calendar.getInstance(TimeZone.getTimeZone(APPLICATION_TIME_ZONE));
cal.set(Calendar.HOUR_OF_DAY, 0);
cal.set(Calendar.MINUTE, 0);
cal.set(Calendar.SECOND, 0);
cal.set(Calendar.MILLISECOND, 0);
return cal.getTime();
|
String | getToday() get Today Calendar now = Calendar.getInstance(); return fd(new java.util.Date(now.getTime().getTime())); |
Date | getToday() get Today Calendar cal = getCalendar();
return cal.getTime();
|
String | getToday() get Today return formatDate(new Date()); |
String | getToday() get Today String dateFormat = "yyyy-MM-dd"; Calendar calender = Calendar.getInstance(); SimpleDateFormat simpleDate = new SimpleDateFormat(dateFormat); return simpleDate.format(calender.getTime()); |
String | getToday() get Today Date today = new Date(); return format(today); |
String | getToday(boolean ceOrTw, String deli) get Today if (deli == null) deli = ""; Calendar cal = Calendar.getInstance(); int WTYear = (cal.get(Calendar.YEAR)); String WTYearS = new String(); if (ceOrTw) { WTYearS = fillZero(String.valueOf(WTYear), 4); } else { ... |
String | getToDay(boolean withTime) get To Day String formatStr = "yyyy-MM-dd"; if (withTime) { formatStr += " HH:mm:ss"; SimpleDateFormat datef = new SimpleDateFormat(formatStr); return datef.format(new Date()); |
Date | getToday(int hour, int minute, int second) get Today Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.HOUR_OF_DAY, hour);
calendar.set(Calendar.MINUTE, minute);
calendar.set(Calendar.SECOND, second);
return calendar.getTime();
|