List of usage examples for com.liferay.portal.kernel.util CalendarUtil beforeByDay
public static boolean beforeByDay(Date date1, Date date2)
From source file:com.liferay.portlet.shopping.model.impl.ShoppingCouponImpl.java
License:Open Source License
public boolean hasValidStartDate() { Date now = new Date(); if (CalendarUtil.beforeByDay(now, getStartDate())) { return false; } else {//from w w w. ja v a 2s .c o m return true; } }
From source file:com.vportal.portlet.vcms.service.impl.VcmsLoggerServiceImpl.java
License:Open Source License
public void removeLogs(Date from, Date to) throws PortalException, SystemException, RemoteException { if (!CalendarUtil.beforeByDay(from, to)) { return;//from w ww. j av a2 s .co m } vcmsLoggerFinder.removeByPeriod(from, to); }