Statalist The Stata Listserver


[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: RE: Importing date data


From   "Nick Cox" <n.j.cox@durham.ac.uk>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Importing date data
Date   Sun, 25 Jun 2006 19:05:00 +0100

There were various other answers to 
this question. In addition, there is an FAQ 
dedicated to the question and a command
-todate- from SSC ditto. 

FAQ     .  Handling date information when numbers are in a continuous sequence
        . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . D. Reichel
        2/03    How do I convert date variables into Stata elapsed
                dates when the numbers run together, like 4151999?
                http://www.stata.com/support/faqs/data/dateseq.html

Nick 
n.j.cox@durham.ac.uk 

Nuno Soares
 
> I have a file that has a variable date using the format YYMMDD, and I
> haven't been able to import it as a date format to Stata. 
> I've been using
> the -infix- command. I don't have any problem to import it as 
> number but
> then I would loose the date information. For instance, I have one
> observation that has 000112, i.e., 2000/01/12 and Stata reads 
> it as 112...

*
*   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