LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (November 2007, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
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
Comments: To: Don Henderson <donaldjhenderson@hotmail.com>
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 > >


Back to: Top of message | Previous page | Main SAS-L page