List of utility methods to do Today
Date | plusDaysToday(int days) plus Days Today return plusDays(getToday(), days);
|
Date | sameTimeToday(Date time) same Time Today if (time == null) { return null; return makeFromDateAndTime(today(), time); |
long | startOfToday() 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();
|
Date | today() today return new Date(); |
Date | Today() Today return removeTime(new Date()); |
long | today() today return dayFromDatetime(System.currentTimeMillis());
|
Date | today() today return startOfDay(getCurrentDate());
|
Calendar | today() today return setMidnight(now());
|
Date | today() today return day(0);
|
int | today() today return systemDate(0);
|