---
schema_version: "1"
id: 9ea840b798f0b5c37d6be62330e1c1c3bd2270380cffa72becab422468ef193e
title: Set Date and Time Ranges (Managed Package)
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.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_set_date_and_time_ranges.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: a6530b13ca485520b142618fdc129642c7126b0ba751e0c85e75f2dd9f439caa
description: 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.
products:
  - Omnistudio
release: "264"
---
# 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/resources-global/_corporate/images/managedpackageicon.png) This information is for Omnistudio for Managed Packages. For Omnistudio on standard runtime, see [Omnistudio Help](https://help.salesforce.com/s/articleView?id=xcloud.os_omnistudio_standard.htm&language=en_US).

## 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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)

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](https://sf-zdocs-cdn-prod.zoominsoftware.com/tdta-xcloud-omnistudio_for_managed_packages-264-0-0-production-enus/aa2554ec-624a-4ee6-8da4-6435670e6e62/images/icon_note.png)

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)](https://help.salesforce.com/s/articleView?id=xcloud.os_lwc_omniscripts.htm&release=264.0.0&type=5 "For the managed package runtime, LWC Omniscripts enable you to enhance an existing Omniscript element or add custom functionality to the Omniscript by using custom Lightning web components.").

- **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