Is there a way I can change the following variables into a singular format? I have 900+ observation for this and as of now they exist as string variables.
1/12/2016 15:10I have tried to use the following formulas but have only created missing values
1/11/2016 12:53
12/22/2015 5:13
11/17/2015 3:42
12/7/2015 2:53
Thu Mar 03 04:58:15 UTC 2018
Thu Mar 03 05:22:07 UTC 2018
Thu Mar 03 08:05:23 UTC 2018
Tue Mar 08 15:57:30 UTC 2018
Tue Mar 08 16:17:02 UTC 2018
Wed Mar 16 15:07:18 UTC 2018
gen date = date( survey_completed_time ,"DMY")
destring survey_completed_time , generate(dsdate)
Best,
Shehryar
0 Response to How do I change the format of date variable in STATA 15
Post a Comment