I am currently trying to change the format of a date variable from a str9 to a float and I am getting a type mismatch error. I was able to successfully change my first variable that was not a str9. Can anyone help me with this? STATA also says, "string %fmt required for string variables", but it will not let me destring this variable.
The dates are currently reading like "30-Oct-12" and I need them to read "30oct2012"
Thanks!
The dates are currently reading like "30-Oct-12" and I need them to read "30oct2012"
. gen endA = dofc(Date_A) |
type mismatch |
r(109); |
Comment