I think that -todate- created by Nick Cox is a lot easier than Jospeh
Coveney's suggestion to Hans Baumgartner. Find it by -findit todate- and
install it. It goes like this (I let all dates be the fifteenth):
-------------------------------
clear
input str6 ymdate
200312
199802
end
gen ymddate=ymdate+"15"
todate ymddate , gen(bdate) pattern(yyyymmdd)
format bdate %d
list
-------------------------------
Svend Juul
__________________________________________
Svend Juul
Institut for Epidemiologi og Socialmedicin
(Dept. Epidemiology and Social Medicine)
Vennelyst Boulevard 6
DK-8000 Aarhus C, Denmark
Phone: +45 8942 6090
Home: +45 8693 7796
Email: [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/