Statalist


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

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


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: reading dates stored as string variable in .csv file
Date   Tue, 25 Aug 2009 21:25:07 +0100

Your example is MDY, not DMY. 

Nick 
[email protected] 

Joshua A Shindell

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.


*
*   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–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index