|
* Calculate 45 days in the future, starting from the current date. * * @SYFDATE1 = *ISO date field containing the date plus the additional 14 days. * @SYFDATE2 = 7/0 numeric field containing the date plus the additional 14 days. * This is the one to be used on the calculations. * * Step #1: Identify the date in *CYMD format, using BIF %DATE. * Step #2: Add 14 days to the date, using BIF %DAYS. Save the result in an *ISO date field. * Step #3: Take resulting value and change the format to be *CHAR with * *CYMD format, using BIF %CHAR. * Step #4: Get the integer part of the value, using BIF %INT. * Save the result. /Free @SYFDATE1 = %date(#SYDAT:*cymd) + %days(45); @SYFDATE2 = %int(%char(@SYFDATE1:*cymd0)); /End-Free Peter Vidal PALL Corporation / SR Programmer Analyst, IT Development Group 10540 Ridge Rd., Ste 203, New Port Richey, FL 34654-5111 http://www.pall.com "Only he who can see the invisible can do the impossible." -Anonymous-
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.