Statalist


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

st: RE: Extract Year from String


From   jasonm@ucla.edu
To   "statalist@hsphsun2.harvard.edu" <statalist@hsphsun2.harvard.edu>
Subject   st: RE: Extract Year from String
Date   Tue, 13 Oct 2009 12:53:58 -0700

Is there anything similar for v9.2?

**************
di  year(dofc(clock("Dec/17/1998 11:30:00 PM", "MDY hms")))
**************

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