[Date Prev][Date Next][Thread Prev][Thread Next][Date index][Thread index]
RE: st: Using a date in a condition
From
"Nick Cox" <[email protected]>
To
<[email protected]>
Subject
RE: st: Using a date in a condition
Date
Wed, 20 Feb 2008 18:31:29 -0000
The leading 0 will just be ignored with both of these.
Nick
Joseph Coveney
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)
*
* 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 |