Does anyone know how the "strptime" function works to define the century when it's missing in data source?
DateDOB = datetime.datetime.strptime(StrDOB,” %y-%m-%d “]).date()
I got as result:
StrDOB DateDOB FYI Year Value (ID card check )
76-10-19 1976-10-19 1976
75-04-30 1975-04-30 1975
66-01-18 2066-01-18 1966 <- Any thoughts or suggestions?
Please sign in to leave a comment.