https://discord.gg/botpress logo
You can create use a Execute Code card to create a...
# 🌎general
e
You can create use a Execute Code card to create a variable called formattedOptions, the could would look like:
Copy code
js
const formattedDate = luxon.DateTime.fromISO(workflow.variable).toLocaleString();

workflow.formattedOptions = [{
 label: `Before ${formattedDate}`,
 value: "before"
}, {
 label: `After ${formattedDate}`,
 value: "after",
}]
7 Views