fixed bad Date and DateTime Field check logic