changed return var of find_ranges to string of date