Statalist


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

date format YYYYMMDD (was st: p value precision in clogit output)


From   Elizabeth Rainwater <[email protected]>
To   [email protected]
Subject   date format YYYYMMDD (was st: p value precision in clogit output)
Date   Thu, 25 Oct 2007 09:36:11 -0500

Hi Dan.
There may be a new trick in Stata 10, but in Stata 9 I use the user-written -todate-, available from SSC (-ssc install todate-). They syntax is:
todate old_date, gen(new_date) pattern(yyyymmdd) format(%d)

-Liz

Rodriguez, Dan (Prop) wrote:

Need to convert date format of YYYYMMDD into Stata date format. Does anyone have a short do-file to accomplish this?

Thank you,
Dan
*
*   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