DatePeriod entity formats

I was testing the Date Period entity in one of our bots and found out this weird scenario:
User entered “January 1 2020” when the bot asked for the “From date” and the bot recognized the user input as “January 1 2020 to January 31 2020”.

I tried making a basic dialog task with just a DatePeriod entity and a message node that prints the entity value and I got {“fromDate”:“2020-01-01”,“toDate”:“2020-11-02”}

Is this a bug or an expected behavior?

@pastapareo
Looks as expected
If you give from as ‘January 1st 2020’ or ‘Jan 1st 2020’ or it will take it as a specific date.

image

image

If you use January 1 2020, it will take it as January month as a whole. Since this is November now, it will take it as nearest January month - which is Jan 2021.
image
This entity is a date period and expects a date period to be specified. When you write a value with spaces in it, it tries to make sense of it and checks whether use could mean a range. So in above example since “1 2020” does not mean any valid date, January is used as nearest January and entire month is taken as a period or range.
image

If you however try ‘Date’ entity and not a date period, it will work fine.
image