integrated the date range search with custom class