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

DateplusDaysToday(int days)
plus Days Today
return plusDays(getToday(), days);
DatesameTimeToday(Date time)
same Time Today
if (time == null) {
    return null;
return makeFromDateAndTime(today(), time);
longstartOfToday()
start Of Today
Calendar calendar = Calendar.getInstance();
calendar.set(Calendar.HOUR_OF_DAY, 0);
calendar.set(Calendar.MINUTE, 0);
calendar.set(Calendar.SECOND, 0);
calendar.set(Calendar.MILLISECOND, 0);
Date date = calendar.getTime();
return date.getTime();
Datetoday()
today
return new Date();
DateToday()
Today
return removeTime(new Date());
longtoday()
today
return dayFromDatetime(System.currentTimeMillis());
Datetoday()
today
return startOfDay(getCurrentDate());
Calendartoday()
today
return setMidnight(now());
Datetoday()
today
return day(0);
inttoday()
today
return systemDate(0);