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
Ready to join fellow brilliant minds for the SAS Hackathon?
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.