Deal with malformed dates