| 
 | 
地板
 
 
 楼主 |
发表于 2011-12-24 13:13:24
|
只看该作者
 
 
 
Re: 问个关于日期的问题
[quote="yugao1986":3p2nd379]data test; 
   input temp yymmdd10.; 
   format temp yymmdd10.; 
   new=intnx('month',temp,-4,'same'); 
   last=intnx('month',temp,-4,'end'); 
   format new last yymmdd10.; 
 
cards; 
2011-08-24 
2011-09-12 
; 
run; 
proc print data=test;run;[/quote:3p2nd379] 
我运行的结果还不是提前四个月的呀?!2011-08-24变成了 2011-04-01... |   
 
 
 
 |