Hi,
I would like to convert string date DDMMMYY with MMM characters to Stata dates
Here is a sample of the data:
I have tried to use the following command but the generated variable is empty:
generate date1 = date("date","DDMMMYY")
I have also tried to use the command "todate" with no more success. Please help. Thanks!
I would like to convert string date DDMMMYY with MMM characters to Stata dates
Here is a sample of the data:
Code:
date 18Mar19 18Mar19 19Mar19 19Mar19 18Mar19 18Mar19 29May19 27May19 16May19 27May19 16Sep19 18Sep19 02Sep19 16Sep19
generate date1 = date("date","DDMMMYY")
I have also tried to use the command "todate" with no more success. Please help. Thanks!
Comment