Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: converting to dates [was:RE: MIME-Version: 1.0]


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: converting to dates [was:RE: MIME-Version: 1.0]
Date   Thu, 6 Nov 2003 12:45:13 -0000

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 
n.j.cox@durham.ac.uk 

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/



© Copyright 1996–2014 StataCorp LP   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index