---
schema_version: "1"
id: 3855bcb654a6f130553821b0baafb0bb53a0dfeec9588ee0a6235743ac4c67d0
title: Omniscripts 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_time_element.md
canonical_url: https://help.salesforce.com/s/articleView?id=xcloud.os_omniscripts_time_element.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 83dffc906d3a0c6a49a43c9e2474c0fd512623b96f7565ce3e86c308e0a7106a
description: For the managed package runtime, enable users to select from a list of times by adding the Time element to your Omniscript. Format the display and set the time intervals.
products:
  - Omnistudio
release: "264"
---
# Omniscripts Time Element (Managed Package)

For the managed package runtime, enable users to select from a list of times by adding the Time element to your Omniscript. Format the display and set the time intervals.

![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 **Time** 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 Time**, enter the earliest time the user can select, such as 12:00 am.
    
    ![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 **Time Format** field. For example, to set the minimum time to midnight, if the **Time Format** is hh:mm a, you must enter 12:00 am.
5. In **Maximum Time**, enter the latest time the user can select, such as 08:00 pm.
    
    ![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 **Time Format** field. For example, to set the maximum time to 8pm, if the **Time Format** is hh:mm a, you must enter 08:00 pm.
6. 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).
7. 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.
8. (Optional) In the **Advanced Options** section, update values for the following properties:
    
    - **Data Type**: Specifies how to display the time in the Data JSON.
        
        - If set to **String**, the **Model Time Format** is applied. **String** is the default data type.
        - If set to **Date**, the time is encoded as an ISO 8601 time.
    - **Model Time Format**: Specifies how the time is formatted in the Data JSON when **Data Type** is set to **String**. The default format is HH:mm:ss.sss'Z'. For more format options, see [Day.js](https://day.js.org/docs/en/parse/string-format).
9. (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.").

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