For the managed package runtime, Date properties are configurable from the Properties panel when you select a Date element. With the Date element, enable users to select a date from a date picker in your Omniscript.
This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.
|
Property |
Description |
|---|---|
|
Data Type |
Specifies how to display the date in the Data JSON. Default is String. If set to String, the Model Date Format is applied. If set to Date, the date is encoded as an ISO 8601 date/time, such as 2018-01-28T05:00:00.000Z. |
|
Date Format |
Specifies the format to display the date. For example, if the format is MM-DD-YYYY, and the user selects January 3, 2020 from the date picker, the date displays as 01-03-2020. For more format options, visit https://day.js.org/docs/en/parse/string-format. |
|
Maximum Date |
The latest date the user can select from the date picker. The format must be the same as in the Date Format field. For example, to set the maximum date to December 31, 2019, if the Date Format is MM-DD-YYYY, you must enter 12-31-2019. |
|
Minimum Date |
The earliest date the user can select from the date picker. The format must be the same as in the Date Format field. For example, to set the minimum date to January 1, 1950, if the Date Format is MM-DD-YYYY, you must enter 01-01-1950. |
|
Model Date Format |
Specifies how the date is formatted in the Data JSON when Data Type is set to String. For example, YYYY-MM-DD. For more format options, visit https://day.js.org/docs/en/parse/string-format. |