
Announcements
Hello-
Is there a way to return the date & Time inputs from an adaptive card using Input.date & Input.time to a format like roundtrip "o" that makes the response usable in an flow?
I have a card going to a user where they input a message and then input time and date they want to message to go out. I want to use the time and date responses in a Delay Until step but cannot figure out how to get the formatting right.
TIA
Hi @FlowWo
I have created sample for you
1.
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.0",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": 2,
"items": [
{
"type": "TextBlock",
"text": "Enter Date And Time",
"weight": "Bolder",
"size": "Medium"
},
{
"type": "TextBlock",
"text": "Please Enter Date",
"wrap": true
},
{
"type": "Input.Date",
"id": "myDate",
},
{
"type": "TextBlock",
"text": "Please Enter Time",
"wrap": true
},
{
"type": "Input.Time",
"id": "myTime",
}
]
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "Submit"
}
]
}
2.
3.
convertToUtc(outputs('Compose'),'Pacific Standard Time')
4.
-------------------------------------------------------------------------
If I have answered your question, please mark post as Solved.
If you like my response, please give it a Thumbs Up.