Loading
Visual Studio Code Based Modeler for Consumer Goods Cloud
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          addDays2AnsiDate(sDate, iDays)

          addDays2AnsiDate(sDate, iDays)

          Adds the given number of days to the given ANSI date.

          Required Editions

          Available in: Lightning Experience in Professional, Unlimited, and Enterprise Editions that have Consumer Goods Cloud enabled.

          Parameters

          • sDate
          • iDays

          Returns

          None

          Example
          Example //Historic products.
          if (addHistoryItem == 1) {
          
          var dateFrom = Utils.addDays2AnsiDate(commitDate, considerMaxHistoryDays * (-1));
          
          mergeEngineParams.push(this.getDSForHistoricProducts(customerPKey,sdoMetaPKey, dateFrom));
          
          }
           
          Loading
          Salesforce Help | Article