get data and filter by date