handling failed dates efficiently