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

Re: st: date format


From   "Svend Juul" <[email protected]>
To   <[email protected]>
Subject   Re: st: date format
Date   Mon, 13 Dec 2004 12:27:53 +0100

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/



© Copyright 1996–2024 StataCorp LLC   |   Terms of use   |   Privacy   |   Contact us   |   What's new   |   Site index