Inline Functions
The Adaptive Card Designer has a large selection of functions for inline formatting of data.
Format Timestamp Example
{
"payload": {
"output": {
"date": "03/15/2018 12:00:00" // date to format
},
"description": "Request"
}
}{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"body": [
{
"type": "TextBlock",
"wrap": true,
// inline function
"text": "${formatDateTime($root.payload.output.date, 'yyyy-MM-dd')}"
}
],
"version": "1.5"
}Last updated