— Did I understand you correctly?
— I tried this but what is case_dob has masked year
— Case_dob could be like "****-04-27" - year masked. In this case compare month and day. If month and day are same - return True. Otherwise False.
Message permanent page
— Try making 3 different if statements
— One for the year
One for the month
One for the day
— If it’s masked/true, move to the next one
— Otherwise just return false
— Ok, if year is masker you can use split for string if structure not changes