Skip to content

Instantly share code, notes, and snippets.

@ArionHardison
Created December 20, 2013 17:40
Show Gist options
  • Save ArionHardison/8058498 to your computer and use it in GitHub Desktop.
Save ArionHardison/8058498 to your computer and use it in GitHub Desktop.
require 'csv'
CSV.foreach('spec/fixtures/voters/hi/2013-03-07.clean', headers: true, col_sep: ',') do |row|
date = Date.strptime(row['registration_date'], '%m%d%y') rescue nil
p row['registration_date'] unless date
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment