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;

URL: http://www2.sas.com/proceedings/sugi28/066-28.pdf

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.