Control bad date formats