Hi Hi, I am relatively new to stata and want to reformat a variable.
the var is named p3_start_TS,
and it is a string and looks like this: 26-10-2018 10:08:59
I want to format it to a numeric var with the following format: format %tdDD/NN/CCYY p3_start_TS.
but I just cant seem to get the code right.
thanks!
0 Response to reformat (destring) var question
Post a Comment