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 (February 2004, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Wed, 4 Feb 2004 22:14:08 -0700
Reply-To:   Alan Churchill <x@X.COM>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Alan Churchill <x@X.COM>
Subject:   Re: convert date to sas date

I am not sure if it is the best way to handle but it works. As far as I know, there is no direct way to handle this type of date in SAS:

data x ; x = '5 February 2004' ; sasdate = input(put(input(scan(x,1),2.),z2.) || substr(scan(x,2),1,3) || scan(x,3),date9.) ; run ;

"Doug" <queanbeyan@hotmail.com> wrote in message news:d72455ac.0402041902.614e2b1d@posting.google.com... > Hi, > > I have a dataset that has a character variable called 'Created' that > has a date in the following format = 5 February 2004. > > Could someone please tell me how I can change this to a sas date? I > have scanned and concatenated, but there must be an easier way - like > an informat? > > Doug


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