Bot flow slot in-built date error

Hi there,

I am using the Architect Bot flow to check the differences between 2 dates.
However, I have set the Bot as UK language yet, when I am using the in built date slot type, it is sometimes using US date format. E.g. in UK we use DD-MM-YY but US uses MM-DD-YY.

In the Bot flow, I ask for 1 date and then another and weirdly the first date it takes in, it assumes it is US date format and then when I ask for a second date (under a different slot name but still using built in date slot type) it registers the 2nd as a UK date format.

So therefore the decision logic I have put in check the difference between the dates isn't working as I wanted to check if the difference between the 2 dates is more than 30 days. AS an example:

1st date: input as 01/08/2021 (assumes incorrectly and thinks it is 8th January 2021)
2nd date: 31/08/2021 (assumes correctly as 31st august 2021)
This is over 30 days but it is the wrong dates. Can anyone help as to prevent it from using US date format?

Any update on this one? I have simplified the logic but still getting US dates in and this also happens when using variables in scripts so could cause confusion.

Hello,

I apologize for the late answer.
I also tried it on my side and had the same result and escalated this to Product Management.

Here is their answer:
The issue is you can define locale in Architect ("en-us", "en-gb", "en-au") but the underlying NLU engine only has the concept of "en-us". I think whats happening is that NLU engine will try to fit into the US date format but will attempt to fit into UK format if it cannot fit into US format (like the second date 31 not fitting into mm)

Until we get a fix in place, you could resolve this issue by asking users to explicitly enter MM/DD/YY format, i.e. Please provide the date in the format MM/DD/YY

We are currently looking into getting a fix added to our backlog to take care of this in the future.

Regards,

Thank you for replying.
No problem, I imagine our customer will still says date format as they are used to, so I will try delay the release of this. I think it will be needed by September so I can get in touch in a month to see if this has been fixed.

Cheers,
Eilidh

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.