Protecting against unsupported date formats