LISTSERV at the University of Georgia
Menubar Imagemap
Home Browse Manage Request Manuals Register
Previous messageNext messagePrevious in topicNext in topicPrevious by same authorNext by same authorPrevious page (July 2005, week 1)Back to main SAS-L pageJoin or leave SAS-L (or change settings)ReplyPost a new messageSearchProportional fontNon-proportional font
Date:         Tue, 5 Jul 2005 18:32:50 -0700
Reply-To:     xiangyang.ye@GMAIL.COM
Sender:       "SAS(r) Discussion" <SAS-L@LISTSERV.UGA.EDU>
From:         Xiangyang Ye <xiangyang.ye@GMAIL.COM>
Organization: http://groups.google.com
Subject:      Re: Add "x" months to a date
Comments: To: sas-l@uga.edu
Content-Type: text/plain; charset="iso-8859-1"

Hi Lou,

I am running 9.1.3 on Windows 2000 professional. Here is an example.

data temp; format date1 date2 mmddyy10.; date1='05jul2005'd; date2=intnx('month',date1,1,'sameday'); run; proc print data=temp noobs; run;

The result is date1 date2 07/05/2005 08/05/2005

HTH

Sean


Back to: Top of message | Previous page | Main SAS-L page