dates = File.open(file_path).collect{ |x| x[19,8] }.sort [dates.first,dates.last]