As is explicit, -decode- makes no sense without value
labels.
I can't see why one would need this, but
you can use the -string()- function with an appropriate
format, e.g.
gen sdate = string(mydate, "%dd_M_CY")
or equivalently -tostring- with an appropriate
format.
Nick
[email protected]
[email protected]
> How do I convert a date format variable into a string variable?
>
> When I do decode, i get the message that the variable i want
> to decode is not labeled.
*
* For searches and help try:
* http://www.stata.com/support/faqs/res/findit.html
* http://www.stata.com/support/statalist/faq
* http://www.ats.ucla.edu/stat/stata/