Invalid format for dates strings does not raise ValueError