Set Date and Time Ranges

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.

Date Range

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

  • Minimum Date: Sets the earliest selectable date in the range. In the designer for a managed package,

  • Maximum Date: Sets the latest selectable date in the range.

The Minimum Date and Maximum Date 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

Time Range

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

Note
Note

Omniscripts do not allow the DateTime format to be included in the Minimum Time or Maximum Time fields.

  • Minimum Time: Sets the earliest selectable time in the range.

  • Maximum Time: Sets the latest selectable time in the range.

The Minimum Time and Maximum Time 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