I am trying to get date only but not getting it, I...
# 🌎general
b
I am trying to get date only but not getting it, Is there any solution?
b
Hey @billowy-truck-83494 This thread will help you regarding the datet issue https://discord.com/channels/1108396290624213082/1156381776260911154
Some useful tips around
DateTime
{{workflow.captureDate.toLocaleDateString("en-US")}}
will give you a readable date like:
March 8, 2023
b
Hey Rohan, I have used {{workflow.captureDate.toLocaleDateString("en-US")}}, it works fine on emulator in botpress studio but when I publish bot and actual window of bot appears , then date is not shown as same line is printed {{workflow.captureDate.toLocaleDateString("en-US")}} however I have used curly braces. Is there any other way to solve it?
@bright-magazine-792 LOOKING FORWARD TO YOUR RESPONSE
b
Do you mean it doesn't work in the shareable webchat?
try using a code card
b
It was solved thanks