How to handle a bad date