Statalist


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

Re: st: Using a date in a condition


From   "Joseph Coveney" <[email protected]>
To   "Statalist" <[email protected]>
Subject   Re: st: Using a date in a condition
Date   Thu, 21 Feb 2008 00:24:53 +0900

Make that

In Stata Release 10:

replace year2 = 07 if fyr == date("31 Dec 04", "DMY", 2050)

In earlier releases:

replace year2 = 07 if fyr == date("31 Dec 04", "dmy", 2050)

Joseph Coveney


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