Hello,
I want to destring a variable, which contains dates in the format
"MM/DD/YY", using:
destring date, replace ignore("/") force
How can I set this to preserve the leading zeroes, so that I can follow with:
todate date, gen(newdate) pattern(mmddyy) f(%d)
Any suggestions would be much appreciated.
--
Best wishes,
Michael McCulloch
Pine Street Foundation
124 Pine St., San Anselmo, CA 94960-2674
Tel: (415) 407-1357
Fax: (415) 485-1065
[email protected]
www.pinestreetfoundation.org
*
* 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/