Ignore invalid dates (Fixes #894)