Convert character field in to SAS date field

/ Published in: SAS
Save to your folder(s)

Copy this code and paste it in your HTML
  1. data l.zz_test_1;
  2. set l.zz_test;
  3. _t = SUBSTRN(left(time_stamp),1,10) ;
  4. format ts_1 date7.;
  5. TS_1 = input(_t,mmddyy10.);
  6. run;


Report this snippet


RSS Icon Subscribe to comments

You need to login to post a comment.