I am working on a dataset which has date in the following format, I want separate columns for month, date and year can anyone help me with the relevant command please? Thank you in advance.
dataex interviewdate
----------------------- copy starting from the next line -----------------------
------------------ copy up to and including the previous line ------------------
dataex interviewdate
----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. To install: ssc install dataex clear input long interviewdate . 29 29 . . . . 24 . . 27 . . . . . 47 47 . 37 14 37 . . 29 29 . . . 15 . 32 . . . . 15 . 15 . . 15 . . 42 42 42 . . . . 42 42 . . 32 7 . 7 . . 20 20 . 20 20 20 15 . . . . . . 13 13 . 13 13 . 13 . . . 7 . . 7 7 . 7 . 19 19 19 19 19 19 19 19 end label values interviewdate interviewdate label def interviewdate 7 "11/3/2004", modify label def interviewdate 13 "16/02/04", modify label def interviewdate 14 "16/03/04", modify label def interviewdate 15 "17/02/04", modify label def interviewdate 19 "18/03/04", modify label def interviewdate 20 "19/02/04", modify label def interviewdate 24 "21/02/04", modify label def interviewdate 27 "23/02/04", modify label def interviewdate 29 "24/02/04", modify label def interviewdate 32 "25/02/04", modify label def interviewdate 37 "28/02/04", modify label def interviewdate 42 "4/3/2004", modify label def interviewdate 47 "6/3/2004", modify
Comment