Dear Statalist members,
I hope you're all doing well.
I'm currently working with two datasets that I need to merge using firm_id and DateStartRole as the key variables. However, I’ve encountered a mismatch in the format of the DateStartRole variable:
Could someone please advise on the best way to convert the string into a numerical Stata date?
I hope you're all doing well.
I'm currently working with two datasets that I need to merge using firm_id and DateStartRole as the key variables. However, I’ve encountered a mismatch in the format of the DateStartRole variable:
- In Dataset 1, DateStartRole is already a numerical Stata date.
- In Dataset 2, DateStartRole is a string in the format "1/1/2002".
Could someone please advise on the best way to convert the string into a numerical Stata date?
Comment