Dear all,

Suppose I have the following dataset
Code:
clear
input str8 yearmonth 
"1960m1"
"1960m2"
"1960m3"
"1960m4"
"1960m5"
"1960m6"
end
I'd like to obtain the end date of the month (e.g 31jan1960 for 1960m1).

Could anyone please help me with this?

Many thanks,

Vinh