process text to a date range