fix before/after date fn usage in jsp