Date input script component
Date/time is an input component that you can use to select a date and optionally, a time and time zone. When an agent clicks the component in a script, a calendar appears. Depending on the component properties, the time and time zone input fields can appear. A variable stores the date and time the agent selects.
Click Date/Time on the component toolbar.
To store the date that an agent selects in a variable, expand the Common properties group.
Under Value, select a string variable. This binds the value that an agent selects by using the date component to the variable. When an agent selects a date, the bound variable stores that date. Conversely, if the bound variable’s value is set before the page is displayed, then the component displays the current value of that variable.
Note:For example, if an agent selects August 8, 2017 from the calendar, it stores the following DATETIME value in the bound variable:
2017-08-07T00:00:00-0400
. The format of the date string is:yyyy-mm-dd
plusT
to indicate time inhh:mm:ss
format, followed by the offset to Coordinated Universal Time (UTC).To configure the input control to prompt for date, time, and time zone, or for only the date, enable or disable Includes Time.
No When you set this option to No, the agent can select a date, but cannot enter a time or time zone.
Yes When you set this option to Yes, the agent receives a prompt to select a date, time, and time zone.
Tip: To set a callback time, the agent must select the contact’s time zone.
Set any other properties of the component.
CommonLayout
Advanced
[NEXT] Was this article helpful?
Get user feedback about articles.