Java Utililty Methods Today

List of utility methods to do Today

Description

The list of methods to do Today are organized into topic(s).

Method

StringgetToday()
get Today
SimpleDateFormat sdf = new SimpleDateFormat(_8DIGIT_DATE_2);
return sdf.format(new Date());
DategetToday()
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();
StringgetToday()
get Today
Calendar now = Calendar.getInstance();
return fd(new java.util.Date(now.getTime().getTime()));
DategetToday()
get Today
Calendar cal = getCalendar();
return cal.getTime();
StringgetToday()
get Today
return formatDate(new Date());
StringgetToday()
get Today
String dateFormat = "yyyy-MM-dd";
Calendar calender = Calendar.getInstance();
SimpleDateFormat simpleDate = new SimpleDateFormat(dateFormat);
return simpleDate.format(calender.getTime());
StringgetToday()
get Today
Date today = new Date();
return format(today);
StringgetToday(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 {
...
StringgetToDay(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());
DategetToday(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();