Dear all,

I have my date variable in the following string format 201501, 201502, 201503, etc..
I would like to generate a date variable. I have been using the following command gen month=monthly(date,"YM"). However, I am just getting a sequence of missing values.
Do you know where the problem lies?
Many thanks in advance!

Francisco