Date: Mon, 5 Nov 2007 21:39:23 -0500
Reply-To: SAS_learner <proccontents@GMAIL.COM>
Sender: "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From: SAS_learner <proccontents@GMAIL.COM>
Subject: Re: Can I Ignore the Time Part Safely without affect the value
In-Reply-To: <BAY121-DAV4440CF04DC8964D0FDAB1CB890@phx.gbl>
Content-Type: text/plain; charset=ISO-8859-1
I can Do it, but Just thinking what may go wrong if I Ignore the time part,
Just for the sake of argument. The Other day when I have changed a character
day to Numeric day and back to Character day to check I got right results
but got a different results when I have used datetime informat so I was
wondering why ??
On Nov 5, 2007 9:07 PM, Don Henderson <donaldjhenderson@hotmail.com> wrote:
> Why don't you just use the DATEPART function?
>
> Regards,
> donh
>
> -----Original Message-----
> From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of
> SAS_learner
> Sent: Monday, November 05, 2007 8:32 PM
> To: SAS-L@LISTSERV.UGA.EDU
> Subject: Can I Ignore the Time Part Safely without affect the value
>
> Hello Guys,
>
> I am changing the datetime Variable which is in format of YYYY-MM-DDTHH:SS
> (Eg: 2007-01-29T10:27) into numerical variable to calculate study day
> variable (SDTM standards) , While converting them to numerical values I am
> using informat of yymmdd10. Using this informat I am getting numerical
> value but I am ignoring the time part, is it right way of doing ?? is it
> going to make any difference in numerical value of the date ??? I can't
> think of possible implication of this , I am thinking that if the time
> changes to 24 Hr automatically it would be another day Right ??
>
> Any Inputs ??
>
> thanks
>
>
|