Hi,
One possible solution, I would suggest making your expiry date as a java.util.Date object and pass it into a method like this:
/**
* <P> isToday()
* This method checks to see if the date is today.
* @param Date
* @return boolean
*/
public boolean isToday(Date dt) {...