Hallo,

I have have a little problem and would be thankful if anyone could help me.
My dataset contains date in form of e.g. (19800229) and i want to extract the year (for this example 1980).

I already tried the command
gen fyear=year( fiscal_year_end)
but I just get missing values.

I think its because Stata can´t ready the format.

It would be great if anyone can help me.
Thanks in advance.

Best regards
Jana