|
data one;
chardate='2007-05-01';
dateval=input(chardate,yymmdd10.);
put dateval=;
put dateval=yymmdd10.;
run;
-----Original Message-----
From: SAS(r) Discussion [mailto:SAS-L@LISTSERV.UGA.EDU] On Behalf Of Tom Smith
Sent: Tuesday, January 25, 2011 11:47 AM
To: SAS-L@LISTSERV.UGA.EDU
Subject: How to convert character date to numeric date Options
I have the following "date" variable which is in character
date
------
2007-05-01
2007-12-09
2008-09-04
I need to convert it to a numeric variriable which looks like same as
below:
date
--------
2007-05-01
2007-12-09
2008-09-04
I am not sure whow to do it.
Thank you so much.
|