Hi, I have a dataset with date variables in numeric form, for example, 20984. I would like change it to YYYYMMDD10. I have attempted Data TESTDATA; Set TESTDATA; mortality = input (put(deathdate, 8.) YYMMDD10.); format mortality YYMMDD10.; run; But it failed and provides values for example 2002-07-23 which is incorrect. The data is from year 2016 and 2017. Any help is appreciated. Thanks!
... View more