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
          Utils Date Function

          Utils Date Function

          The Utils Date function contains a set of functions, which you can use to create dates. These functions ensure that dates are always used and localized with correct data types.

          Required Editions

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

          The Utils Date function consists of these functions:

          • createDateByMillisec()
          • createDateByString()
          • createSpecificDate()
          • createDateByMilliSec()
            Use this function to create a date based on the specified number for milliseconds. The input value represents milliseconds since 1.1.1970.
          • createDateByString()
            Use this function to create a date object based on the specified data string. This function is identical to the new Date(<string>) function that’s available in the JavaScript Date API.
          • createSpecificDate()
            Use this function to create a date based on the specified parameters.
           
          Loading
          Salesforce Help | Article