4

Passing a date to LUIS in the format "3/1/2017" returns a builtin.datetimev2 entity resolved to 1 March 2013.

Month first is a US convention for date strings, but not in my locale where this string generally represents 1 Jan 2017.

Here is the JSON response:

    {
  "entity": "23/12/17",
  "type": "builtin.datetimeV2.date",
  "startIndex": 70,
  "endIndex": 77,
  "resolution": {
    "values": [
      {
        "timex": "2017-12-23",
        "type": "date",
        "value": "2017-12-23"
      }
    ]
  }
},
{
  "entity": "3/1/18",
  "type": "builtin.datetimeV2.date",
  "startIndex": 83,
  "endIndex": 88,
  "resolution": {
    "values": [
      {
        "timex": "2018-03-01",
        "type": "date",
        "value": "2018-03-01"
      }
    ]
  }
},
Matt Evans
  • 7,113
  • 7
  • 32
  • 64

1 Answers1

2

builtin.datetimeV2.date is currently always en-us, and there isn't a way to change it.

There's a UserVoice request you can vote on here: https://cognitive.uservoice.com/forums/551524-luis/suggestions/31549864-luis-add-support-for-english-regional-formats

Sorry this isn't the answer you're looking for.

Eric Dahlvang
  • 8,252
  • 4
  • 29
  • 50