Stata The Stata listserver
[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]

st: converting a string into a date


From   Fabrizio Stracci <[email protected]>
To   <[email protected]>
Subject   st: converting a string into a date
Date   Mon, 30 Aug 2004 15:04:57 +0200

Dear listers,

I have a large file containing a date of birth variable coded "ddmmyyyy"
without any separator. User's manual on page 306 suggests a solution for a
similar case. However there should be some way to insert characters at a
fixed position into a string (i.e. a "/" after the second and the fourth
character) or to generate three new substrings containing day, month, and
year respectively again based on the fixed position of day, month, and year
in the string... probably I just overlooked it. Many thanks for your help.

best regards
Fabrizio Stracci

===================================================================
Fabrizio Stracci
Dept. Hygiene and Public Health, University of Perugia
Umbrian Population Cancer Registry
Via del Giochetto
06100 Perugia, Italy
Tel. (+39) 075 585 7366
Fax (+39) 075 585 7317
e-mail [email protected]
====================================================================


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