Hello everyone,

I have some issues with my dataset and I really need your help!! I try to set my monthly time series data, but unfortunately Stata does not read them. I have data from 2008m1 to 2018m12.
I have used the following code: generate double time2 = date(time, "YM")
format % tm time2
Then, I';ve tried sset my data and here is the problem:
tsset time2, monthly
time variable: time2, . to .
delta: 1 month
Stata does not accept the convesion, It seems that I have no time data and I cannot employ the model I have to. What I have to do in order to fix this? Did i miss something when I ;ve convert the string varibale to mumeric? I really appreciate your help!!