---
schema_version: "1"
id: 93955434df3b66869c5d3bdf3804e8dd5b2a286e996085d2a00d5937cd69c42f
title: Omniscripts Date/Time Element (Managed Package)
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/xcloud/264-0-0/os_omniscripts_date_time_element.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_omniscripts_date_time_element.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: fae3395b4df31fa49d6d9bc60f998180902266274ae99459c36c82fac85eb351
description: For the managed package runtime, enable users to select a date from a date picker and a time from a list by adding the Date/Time element to your Omniscript. Set the minimum and maximum dates, and the date and time formats.
products:
  - Omnistudio
release: "264"
---
# Omniscripts Date/Time Element (Managed Package)

For the managed package runtime, enable users to select a date from a date picker and a time from a list by adding the Date/Time element to your Omniscript. Set the minimum and maximum dates, and the date and time formats.

![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).

1. Drag a **Text** element from the Build panel onto the canvas.
2. In the Properties panel, give the element a name in the **Name** field.
3. In **Field Label**, enter a label visible to the user.
4. In **Minimum Date**, enter the earliest date the user can select from the date picker, such as 01-01-1950.
    
    ![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
    
    The format entered 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.
5. In **Maximum Date**, enter the latest date the user can select from the date picker, such as 12-31-2019.
    
    ![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
    
    The format entered 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.
6. In **Date Format**, enter 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, see [Day.js](https://day.js.org/docs/en/parse/string-format).
7. In **Time Format**, enter the format to display the time, such as hh:mm a, which is the default.
    
    ![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
    
    Enter h or hh for hour, m or mm for minute, s or ss for seconds, and a for am/pm. A single letter, such as h or m, has no leading zero. Remove the a to display 24 hour time. For example, hh:mm a displays `03:30 pm`, h:mm a displays `3:30 pm`, and hh:mm:ss. displays `15:30 01`. For more format options, see [Day.js](https://day.js.org/docs/en/parse/string-format).
8. In **Time Interval**, enter the intervals within an hour the user can select from the time dropdown. For example, enter 15 for 15 minute periods within the hour such as 12:00, 12:15, 12:30, 12:45, and so on. The default interval is 30.
9. In the **Advanced Options** section, select a **Time Zone**:
    
    - Select **Local Timezone** to use the timezone of the browser.
    - Select **User Timezone** to use the timezone set in the logged-in user's profile.
10. (Optional) For additional properties, see [Common Omniscript Element Properties Definitions (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_common_omniscript_element_properties_definitions.htm&release=264.0.0&type=5 "For the managed package runtime, each element also includes an extensible Property set that's specific to the type of element. Use the Properties pane on the Designer to edit these properties. Some common element properties aren’t available in certain elements.").

- **[Date/Time Properties (Managed Package)](https://help.salesforce.com/s/articleView?id=xcloud.os_date_time_properties.htm&release=264.0.0&type=5)**  
    For the managed package runtime, Date/Time properties are configurable from the Properties panel when you select a Date/Time element. With the Date/Time element, enable users to select a date from a date picker and a time from a dropdown list in your Omniscript.