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)
Os membros conectados podem publicar, acompanhar atualizações e muito mais. É novo por aqui? Cadastre-se gratuitamente.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.