Hi Team,
I have a date column which is in character format as below:
I would like to convert into numeric format as well as the complete date as below:
Can anyone help ?
Something like this:
data want; input Start_Date $ 20.; t1 = scan(Start_Date,1,"T"); t2 = scan(Start_Date,2,"T"); Start_Date = catx("T", ifc(t1 = "-----","2020-01-01",t1), coalescec(t2,"00:00:00") ) ; drop t:; cards; 2020-02-02T16:29:00 2020-11-03 -----T12:47:00 ; run; proc print; run;
?
Bart
Nearly 200 sessions are now available on demand with the SAS Innovate Digital Pass.
ANOVA, or Analysis Of Variance, is used to compare the averages or means of two or more populations to better understand how they differ. Watch this tutorial for more.
Find more tutorials on the SAS Users YouTube channel.