Factor out cleaning datetime string
Merge pull request #5 from Recras/date-parsing

Make date parsing cleaner (with more specific error handling)