Returns a start date, plus or minus a specified number of months, days or years.
Sample Input:
DateOffset ( tuday ; -18 ; 7 ; 0)
Sample Output:
3/29/2006 [ if tuday is 9/22/2007]
Description:
Returns a start date, plus or minus a specified number of months, days or years. For example, avoids the need for substituting the less accurate "365 * 1.5" (or 547 or 547.5? or 548) for an 18-month offset in date calculations. Also makes it easier to read and remember that the date is adjusted by 18 months (rather than remember what 547 days represents).
Note: these functions are not guaranteed
or supported by BrianDunning.com. Please contact the individual
developer with any questions or problems.
The premiere class for Lasso 8 and Lasso Studio with FileMaker Server 7 Advanced, coming soon to a city near you. Click
here.
Custom Function Authors:
Link to all of your own custom functions on this site with the following URL:
http://www.briandunning.com/filemaker-custom-functions/results.php?author=Your
Name Here