DateUtil.java: New Method


Added new method for use with timex tag library.

public static boolean isInCurrentPayPeriod(Date checkDate) {     Date weekStartDate = getDateWithZeroTime(getCurrentPeriodStartingDate());     Date weekEndDate = getDateWithMaxTime(getCurrentPeriodEndingDate());     return (!checkDate.before(weekStartDate) && !checkDate             .after(weekEndDate)); }




Agile Java Development with Spring, Hibernate and Eclipse
Agile Java Development with Spring, Hibernate and Eclipse
ISBN: 0672328968
EAN: 2147483647
Year: 2006
Pages: 219

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net