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
          createSpecificDate()

          createSpecificDate()

          Use this function to create a date based on the specified parameters.

          Required Editions

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

          Parameters

          • year: Numeric value that’s equal to the year.
          • month: Numeric value that’s equal to the month. The value for January is set as 0. The value of other months follow according to the sequence in the calendar. If you don’t define the month , this function considers the default value (0).
          • date: Numeric value that’s equal to the day of the month. If you don’t define the value, this function presets the system as 1.
          • hours: Numeric value to specify the hour. If you don’t define the value, this function presets the system as 0.
          • minutes: Numeric value to specify the minutes. If you don’t define the value, this function presets the system as 0.
          • seconds: Numeric value to specify the seconds. If you don’t define the value, this function presets the system as 0.
          • milliseconds: Numeric value to specify the milliseconds. If you don’t define the value, this function presets the system as 0.

          Returns

          Date object.

           
          Loading
          Salesforce Help | Article