throw error on invalid date
Merge pull request #6 from trodrigues/master

Throw on invalid dates