Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Format date from "mm/dd/yyyy" to "dd/mm/yyyy"

Hi, When we take date input from user by using @sys.date or @sys.date-time dialogflow cx gives the format  mm/dd/yyyy. I need the format dd/mm/yyyy? How to convert the format dd/mm/yyyy from mm/dd/yyyy.

shakil776_0-1706766639271.png

My input was 01/03/1996 and the format is dd/mm/yyyy. But dialogflow convert it mm/dd/yyyy.

So how can i get dd/mm/yyyy format ?

0 8 1,248
8 REPLIES 8

I think that is due to the locale of the agent, if you change it to an English that uses dd/mm/yyyy as date format it should fix the issue!

Xavi

@xavidop I added locale in en but not solved my issue. Please look this screenshot

shakil776_0-1706777635975.png

 

for locale English US the date format is mm/dd/yyyy you will need to change the locale to a one that the format is dd/mm/yyyy

@xavidop I need dd/mm/yyyy format for Australian EN locale. So how can i change the date format mm/dd/yyyy to dd/mm/yyyy. Can you please give me any idea?

shakil776_0-1706778206410.png

 




mm that is weird... did you click on save in the agent settings and restart the simulator?

@xavidop  Yes yes! clicked save and also restart the simulator but there are no changes when I changed locale 🙂 

oh wow, can you try with another English-locale? like the British one?

@xavidop I  tried but nothing changed 🙂 

shakil776_0-1706787712374.png