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

Re: st: dates

From   P chrisman <>
Subject   Re: st: dates
Date   Fri, 17 Aug 2007 13:35:22 -0700

Dear List

I tried this and keeping getting the message that no changes were made when there are definitely changes that should have been made.

. replace exitdate=mdy(12,31,2005) if year(exitdate)==2006
(0 real changes made)

I do not know what it means but when browsing data the "exitdate" is in blue with dashes and "entrydate" is in black with spaces. The formats are:

describe exitdate entrydate

storage display value
variable name type format label variable label
exitdate long %dD_m_Y exitdate entrydate long %dD_m_Y
I am confused why this command in not capturing the dates I need to change.

Sebastian F. Büchte wrote:


you could try

replace exitdate = mdy(12,31,2005) if year(exitdate)==2006


*   For searches and help try:

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