get data for several date ranges