Hello all,

I am trying to extract the years from a datetime variable and do not seem to find a way. I am attaching images of what I see on STATA. Can someone explain to me in a simple way what I should do?

Thank you in advance! [ATTACH=CONFIG]temp_24673_1636800585647_206[/ATTACH] [ATTACH=CONFIG]temp_24672_1636800679451_248[/ATTACH]