replaced regex date filtering with filtering based on datepicker