You are here:
createSpecificDate()
Use this function to create a date based on the specified parameters.

Use more general search terms.
Select fewer filters to broaden your search.
You are here:
Use this function to create a date based on the specified parameters.
| 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.

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.