Schema Explorer

Input.Date

Lets a user choose a date.

Property Type Required Description Version
id string Yes Unique identifier for the value. Used to identify collected input when the Submit action is performed. 1.0
max string No Hint of maximum value expressed in ISO-8601 format (may be ignored by some clients). 1.0
min string No Hint of minimum value expressed in ISO-8601 format (may be ignored by some clients). 1.0
placeholder string No Description of the input desired. Displayed when no selection has been made. 1.0
type "Input.Date" Yes Must be "Input.Date". 1.0
value string No The initial value for this field expressed in ISO-8601 format. 1.0
spacing string No Controls the amount of spacing between this element and the preceding element. 1.0
separator boolean No, default: false When true, draw a separating line at the top of the element. 1.0

Example

{
	"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
	"type": "AdaptiveCard",
	"version": "1.0",
	"body": [
		{
			"type": "TextBlock",
			"text": "Date Input"
		},
		{
			"type": "Input.Date",
			"id": "date",
			"placeholder": "Enter a date",
			"value": "2017-10-12"
		}
	],
	"actions": [
		{
			"type": "Action.Submit",
			"title": "OK"
		}
	]
}
{ "$schema": "http://adaptivecards.io/schemas/adaptive-card.json", "type": "AdaptiveCard", "version": "1.0", "body": [ { "type": "TextBlock", "text": "Date Input" }, { "type": "Input.Date", "id": "date", "placeholder": "Enter a date", "value": "2017-10-12" } ], "actions": [ { "type": "Action.Submit", "title": "OK" } ] }
Try it Yourself »

Properties

id

Unique identifier for the value. Used to identify collected input when the Submit action is performed.

  • Type: string
  • Required: Yes

max

Hint of maximum value expressed in ISO-8601 format (may be ignored by some clients).

  • Type: string
  • Required: No

min

Hint of minimum value expressed in ISO-8601 format (may be ignored by some clients).

  • Type: string
  • Required: No

placeholder

Description of the input desired. Displayed when no selection has been made.

  • Type: string
  • Required: No

type

Must be "Input.Date".

  • Type: "Input.Date"
  • Required: Yes
  • Allowed values:
    • Input.Date

value

The initial value for this field expressed in ISO-8601 format.

  • Type: string
  • Required: No

spacing

Controls the amount of spacing between this element and the preceding element.

  • Type: string
  • Required: No
  • Allowed values:
    • "none"
    • "small"
    • "default"
    • "medium"
    • "large"
    • "extraLarge"
    • "padding"

separator

When true, draw a separating line at the top of the element.

  • Type: boolean
  • Required: No, default: false