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

Convert YYYY-MM-DD to YYYYMM

$
0
0
I want to create a yearmonth variable from my date variable (YYYY-MM-DD)
i.e convert "2005-04-03" to "200504"
The commands I am using keep throwing up missing values or mismatch errors.
Anyone know how to do this on Stata?

Viewing all articles
Browse latest Browse all 72798

Trending Articles



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