Dear All,

Can you help me in converting this date format

----------------------- copy starting from the next line -----------------------
Code:
* Example generated by -dataex-. For more info, type help dataex
clear
input str255 yearofrecord
"26/03/21"
"25/03/21"
"23/03/21"
"23/03/21"
"22/03/21"
"22/03/21"
"19/03/21"
"18/03/21"
"18/03/21"
"16/03/21"
"15/03/21"
"13/03/21"
"12/03/21"
"09/03/21"
"04/03/21"
"03/03/21"
"02/03/21"
"02/03/21"
"25/02/21"
"19/02/21"
"19/02/21"
"18/02/21"
"18/02/21"
"17/02/21"
"17/02/21"
"16/02/21"
"16/02/21"
"16/02/21"
"15/02/21"
"10/02/21"
"09/02/21"
"08/02/21"
"06/02/21"
"06/02/21"
"05/02/21"
"05/02/21"
"04/02/21"
"04/02/21"
"03/02/21"
"03/02/21"
"29/01/21"
"29/01/21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
"1-Jul-21"
end

Convert this string variable into date and extract the year from date variable.

Thank you