You use the INPUT function, and the proper informat (DDMMYY10.)
data have;
input date $10.;
datalines;
20/11/2017
21/09/2017
;
data want;
set have;
numeric_date=input(date,ddmmyy10.);
format numeric_date date9.;
run;
You use the INPUT function, and the proper informat (DDMMYY10.)
data have;
input date $10.;
datalines;
20/11/2017
21/09/2017
;
data want;
set have;
numeric_date=input(date,ddmmyy10.);
format numeric_date date9.;
run;
-- Paige Miller
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.