Loading
Salesforce Enforces New Security Requirements in Summer 2026Read More
Set Date and Time Ranges (Managed Package)

Set Date and Time Ranges (Managed Package)

For the managed package runtime, the Date, Date/Time, and Time elements enable users to input dates and times into an Omniscript form. Each element has different properties that enable you to present a selectable range of dates or times to the User.

Managed Package app icon This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see Omnistudio Help.

Date Range

To create a selectable Date range for the Date or Date/Time element, configure the following properties:

  • minDate: Sets the earliest selectable date in the range.

  • maxDate: Sets the latest selectable date in the range.

The minDate and maxDate fields accept both dynamic and static values.

Examples of acceptable dynamic value syntax:

  • today + 1 day

  • today - 5 days

  • today + 2 months

  • today - 1 month

Examples of acceptable static value syntax:

  • 2018/10/21

  • 10-21-2018

Note
Note

Prior to the Summer '19 release, mobile Date Range errors do not display specific dates if an incorrect date is entered.

Time Range

To create a selectable Time range for the Time element, configure the following properties:

Note
Note

LWC Omniscripts do not allow the DateTime format to be included in the minTime or maxTime fields. For more information on LWC Omniscripts, see Lightning Web Component Omniscripts (Managed Package).

  • minTime: Sets the earliest selectable time in the range.

  • maxTime: Sets the latest selectable time in the range.

The minTime and maxTime fields accept static values that must include four digits formatted as HH:mm in the 12-hour clock or 24-hour clock syntax.

Examples of acceptable 12-hour clock values include:

  • 01:00 AM

  • 01:00 PM

  • T07:30:00.000Z

Examples of acceptable 24-hour clock values include:

  • 01:00

  • 13:00

  • T19:30:00.000Z

 
Loading
Salesforce Help | Article