Ernest Berkhout already recommended -todate-.
In addition, there is an FAQ on this at
http://www.stata.com/support/faqs/data/dateseq.html
As so often, the choice is between a solution
from first principles and a canned solution,
in this case -todate-.
Nick
[email protected]
Nuttall, Martin
> Can anyone help with converting a number to a date?
> My data is stored as a long integer. For example, 21021997
> is 21st February 1997 and 2102002 is 2nd Feb 2002.
*
* 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/