Hello!
I need to calculate the company's age, where the incorporation date is given. However, the information is not in the same format for every observation, and the variable type is str10.
Namely, some observations have DD/MM/YY format, some MM/YY, and others only YY given. How should I approach this problem? Ideally, I would only need the Year of incorporation of each company, if that makes sense.
I would really appreciate any help, for I am struggling with this for a while now.
Thank you in advance!
I need to calculate the company's age, where the incorporation date is given. However, the information is not in the same format for every observation, and the variable type is str10.
Namely, some observations have DD/MM/YY format, some MM/YY, and others only YY given. How should I approach this problem? Ideally, I would only need the Year of incorporation of each company, if that makes sense.
I would really appreciate any help, for I am struggling with this for a while now.
Thank you in advance!
Comment