Statalist


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

st: reading dates stored as string variable in .csv file


From   Joshua A Shindell <shindell@uwm.edu>
To   statalist@hsphsun2.harvard.edu
Subject   st: reading dates stored as string variable in .csv file
Date   Tue, 25 Aug 2009 15:22:28 -0500 (CDT)

Hello all,

I am having trouble reformatting date values of the form 12/31/08.  The variables are stored as a sting variable and the code  gen newdate= date(date, "DMY", 2010) is generating a large number of missing values.  I am using Stata 11.

Thank you,

Joshua A. Shindell


*
*   For searches and help try:
*   http://www.stata.com/help.cgi?search
*   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