|
Singh, You add or subtract durations just like regular numeric fields. You just need to use the &DAYS, &MONTHS, or &YEARS function to convert your duration into a format compatible with a date data type. For example, to add 30 days to the current date you would code: FutureDate = %Date() + %Days(30); To move back 30 days you would code: PastDate = %Date() - %Days(30); To calculate the difference between two dates use %DIFF as Bob mentioned. HTH, Rick > -----Original Message----- > From: Gurpreet Singh [mailto:gsingh@xxxxxxxxxxxxxx] > Sent: Wednesday, October 22, 2003 10:03 AM > To: rpg400-l@xxxxxxxxxxxx > Subject: adddur/subdur ile free format > > > Hi, Please help can we do "adddur or subdur" in ile free > format is yes how? > Thanks. > > Gurpreet Singh > Programmer/Analyst > Weyco Group, Inc. > 414-908-1803
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.