try/catch for bad dates