Quantcast
Channel: Statalist
Viewing all articles
Browse latest Browse all 65664

a basic monthly date question

$
0
0
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:
Code:
gen fqdate = qofd(datadate)
format fqdate %tq
What would be the counterpart for monthly data?

Thanks

Viewing all articles
Browse latest Browse all 65664

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>