Update the GetData to support date range

date range is [startDate, endDate)