Hi,

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
While this code doesn't give me an error, it also doesn't give me the correct times: Array


Anyone could help?

Thanks a lot!