I have a date/time variable that is a string and looks as follows: hh.mm.ss DD.MM.YYYY.
I'd like to convert this variable to time/date format. What I tried was:
Code:
gen start2 = clock(start, "hms DMY") format start2 %tc
Anyone could help?
Thanks a lot!
0 Response to Problems converting string variable to date/time format
Post a Comment