gracefully handle non-parseable dates (fixes #23)

https://github.com/kdeldycke/scripts/issues/23
Merge pull request #24 from aspiers/master

gracefully handle non-parseable dates (fixes #23)