Don't crash when parsing invalid dates, and mark invalid dates as such.
Merge pull request #43 from chaghi/fix/date-parsing

Don't crash when parsing invalid dates, and mark invalid dates as such.