# Input.DateTime
Cardscript
Lets a user enter a telephone number.
# Example
{
"type": "AdaptiveCard",
"body": [
{
"id": "date",
"type": "Input.DateTime",
"placeholder": "Input.DateTime",
"spacing": "medium"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
# Required properties
# id
Unique identifier for the value. Used to identify collected input when the Submit action is performed.
- Type:
string
# type
Must be "Input.DateTime"
.
- Type:
string
- Values:
Input.DateTime
# Optional properties
# placeholder
Description of the input desired. Displayed when no text has been input.
- Type:
string
# clearable
Whether the user can clear the data.
- Type:
boolean
# withSeconds
Whether to display and allow the user to enter seconds.
- Type:
boolean
# spacing
Controls the amount of spacing between this element and the preceding element.
- Type:
string
- Values:
none
small
default
medium
large
extraLarge
padding
# separator
When true
, draw a separating line at the top of the element.
- Type:
boolean
# JSON Schema
{
"additionalProperties": true,
"type": "Input.DateTime",
"description": "Lets a user enter a telephone number.",
"allOf": [
{
"$ref": "#/definitions/CardElement"
}
],
"properties": {
"id": {
"type": "string",
"description": "Unique identifier for the value. Used to identify collected input when the Submit action is performed."
},
"type": {
"type": "string",
"description": "Must be `\"Input.DateTime\"`.",
"enum": [
"Input.DateTime"
]
},
"placeholder": {
"type": "string",
"description": "Description of the input desired. Displayed when no text has been input."
},
"clearable": {
"type": "boolean",
"description": "Whether the user can clear the data."
},
"withSeconds": {
"type": "boolean",
"description": "Whether to display and allow the user to enter seconds",
"default": false
}
},
"required": [
"type",
"id"
],
"typeSafe": "input-date-time",
"example": "FIXME!",
"propertySummary": [
{
"name": "id",
"type": "string",
"required": "Required",
"text": "Unique identifier for the value. Used to identify collected input when the Submit action is performed."
},
{
"name": "type",
"type": "string",
"required": "Required",
"text": "Must be `\"Input.DateTime\"`."
},
{
"name": "placeholder",
"type": "string",
"required": "Optional",
"text": "Description of the input desired. Displayed when no text has been input."
},
{
"name": "clearable",
"type": "boolean",
"required": "Optional",
"text": "Whether the user can clear the data."
},
{
"name": "withSeconds",
"type": "boolean",
"required": "Optional",
"text": "Whether to display and allow the user to enter seconds"
}
]
}