Hello,
I need help troubleshooting a date conversion.
I have date variables imported from .csv that appear as mm/dd/yy (format %9s, type str8). I am trying to convert to STATA dates and then format %td.
data:
date
4/26/19
4/10/19
5/1/19
4/11/19
8/27/19
4/23/19
the command
generate date_new=date(date,"MDY")
returns all missing values
This has worked for me before. Please help. What am I missing?
I need help troubleshooting a date conversion.
I have date variables imported from .csv that appear as mm/dd/yy (format %9s, type str8). I am trying to convert to STATA dates and then format %td.
data:
date
4/26/19
4/10/19
5/1/19
4/11/19
8/27/19
4/23/19
the command
generate date_new=date(date,"MDY")
returns all missing values
This has worked for me before. Please help. What am I missing?
Comment