Solved! Go to Solution.
def dateDiff(date): from datetime import datetime return int((datetime.now( ) - datetime.strptime(date,"%m/%d/%Y")).days/365.2425)
dateDiff( !DOB! )
def dateDiff(date): from datetime import datetime return int((datetime.now( ) - datetime.strptime(date,"%m/%d/%Y")).days/365.2425)
dateDiff( !DOB! )
def dateDiff(date): from datetime import datetime if date is None: pass else: return int((datetime.now( ) - datetime.strptime(date,"%m/%d/%Y")).days/365.2425)