Fixed date checking.