Added search event date function