---
schema_version: "1"
id: af25238dc5dd3543673e44e1970018ec2c0356657037e4406c7de45d9fef7f9e
title: Set Date and Time Ranges
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_set_date_and_time_ranges_21553.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_set_date_and_time_ranges_21553.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: d34d66767b35cdad9a2a993da33f03385e08ea8b604caad3259ceb5022a3dadc
description: 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.
products:
  - Omnistudio
release: "264"
---
# 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio-264-0-0-production-enus/f526eaa8-ae05-487a-8944-4bb99b0b78ac/images/icon_note.png)

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