A*********u 发帖数: 8976 | 1 ☆─────────────────────────────────────☆
EA (故事的角色) 于 (Tue Jan 29 22:37:01 2008) 提到:
data a;
date='May 6, 2006';
run;
how can I convert this character date to numeric sas date? anybody know what
this date format is? I tried date11. but it didn't work.
☆─────────────────────────────────────☆
Brandon (大奔◎仰望蓝天) 于 (Tue Jan 29 22:51:01 2008) 提到:
data a;
date='May 6, 2006';
x = scan(date,1,' ,');
y = scan(date,2,' ,');
z = scan(date,-1,' ,');
my_date = input(compress(y||x||z),date11.);
format |
|