Statalist The Stata Listserver


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

Re: st: dates


From   Joseph Coveney <[email protected]>
To   Statalist <[email protected]>
Subject   Re: st: dates
Date   Mon, 21 May 2007 09:41:07 +0900

Sorry; I accidentally transposed month and day in the mask string.  Based
upon Ali's example, it should have been

generate int nDate = date(substr(sDate, 1, 10), "dmy")

Joseph Coveney

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