Statalist


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

st: RE: date function


From   "Nick Cox" <[email protected]>
To   <[email protected]>
Subject   st: RE: date function
Date   Fri, 26 Oct 2007 19:55:23 +0100

mdy? dmy! N 

Tina Hernandez-Boussard

Looking for some help converting my string data to a %td.

My date is a str11 as follows:

    | surgery_d~e |
      |-------------|
   1. | 20-Jun-2005 |
   2. | 22-Mar-2005 |
   3. | 29-Nov-2005 |
   4. | 18-Apr-2006 |
   5. | 28-Sep-2004 |

When I try to convert this is a date, gen mydate=date( surgery_date,  
"mdy")

I just get a variable with all values missing.

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