handle bad dates