data array with date range and return text value in result