Link to home
Start Free TrialLog in
Avatar of sam2929
sam2929

asked on

change chracter to yymmdd10.

i have date which is Chracter 10 in format 20101107155504 i want it to be converted to YYMMDD10.
ASKER CERTIFIED SOLUTION
Avatar of Aloysius Low
Aloysius Low
Flag of Singapore image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Diaphanosoma
Diaphanosoma

Do you have a datetime as a character?

data new; set old;
date_time  = input(char_date_time, datetime18.);
date= datepart(date_time);
format date  yymmdd10.;
run;