Tuesday, August 16, 2022

Generating date variable

Hello all,

I have the following code:

Code:
clear
input float(qdate)
1900q1
1900q2
1900q3
1900q4
end
tempfile data
save `data'
I want to transform the output into a date variable that looks like this:

Code:
31mar1900
30jun1900
30sep1900
31dec1900
I would appreciate any assistance!

Anoush K.

No comments:

Post a Comment