Correct date checking.