Hi all
This is a basic question but I can not get the correct code to work.
I have a variable (datadate) that is in a form similar to 31 Mar 78
I want to create monthly variable and then sort my data monthly.
I used to do this code for quarterly data:
What would be the counterpart for monthly data?
Thanks
This is a basic question but I can not get the correct code to work.
I have a variable (datadate) that is in a form similar to 31 Mar 78
I want to create monthly variable and then sort my data monthly.
I used to do this code for quarterly data:
Code:
gen fqdate = qofd(datadate) format fqdate %tq
Thanks
Comment