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?
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?
Comment