Date: Thu, 29 Dec 2005 15:21:13 +0000
Reply-To: toby dunn <tobydunn@HOTMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: toby dunn <tobydunn@HOTMAIL.COM>
Subject: Re: finding a date a fixed amount of time beyond an original
In-Reply-To: <200512291505.jBTBkuqC022562@mailgw.cc.uga.edu>
Content-Type: text/plain; format=flowed
Shawn ,
Your looking for intnx function:
DatePlus180 = intnx('Day' , StartDate , 180) ;
Toby Dunn
From: "Bauldry, Shawn" <sbauldry@PPV.ORG>
Reply-To: "Bauldry, Shawn" <sbauldry@PPV.ORG>
To: SAS-L@LISTSERV.UGA.EDU
Subject: finding a date a fixed amount of time beyond an original
Date: Thu, 29 Dec 2005 10:05:46 -0500
I have a situation where I need to determine a set of dates a fixed amount
of time past an enrollment date (e.g., 180 days) for a group of participants
who began a program at different points in time. I'm wondering if there's a
simple way to do this? I've tried unpacking the enrollment date into a day,
month, and year component, then adding 6 to the month component (with a set
of conditions to deal with changes in years), then recombining into a new
date. But this, of course, does not find the precise date 180 days after
enrollment.
Any thoughts on a better way?
-Shawn
|