Statalist


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

st: date function


From   "Visintainer, Paul" <PAUL_VISINTAINER@NYMC.EDU>
To   <statalist@hsphsun2.harvard.edu>
Subject   st: date function
Date   Wed, 6 Feb 2008 15:42:38 -0500

Is there a date function that converts a string variable containing only the text of the month into a numeric version of the month?  e.g.:  X has string values October, April, December, etc.  I want to create a new variable that is numeric with numbers 10, 04, 12, etc.   I thought -monthly( )- would do it, but I can't seem to get the right syntax.

Thanks.

-p


______________________________________
Paul F. Visintainer, PhD

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