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 (January 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:   Tue, 4 Jan 2005 04:33:12 GMT
Reply-To:   Alan Churchill <SASL001@SAVIAN.NET>
Sender:   "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:   Alan Churchill <SASL001@SAVIAN.NET>
Subject:   how to change date format mm-dd-yy to mm/dd/yy?

Use the input modifier:

data _null_ ; input dateval $8. ; newdate = input(dateval,mmddyy8.) ; put newdate date. ; datalines; 08-03-98 08-04-97 ; run;

Thanks, Alan Savian "Bridging SAS and Microsoft Technologies"

? nntp://news.qwest.net/comp.soft-sys.sas/ Hi,

My source data looks like mm-dd-yy(e.g.,06-30-98) and is character variable. How can I change it to numeric mm/dd/yy format? Thank you!

:)

[comp.soft-sys.sas]


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