question

Barry Burd avatar image
Barry Burd asked

How to recognize a year?

I want the user to ask for information about the year 1965. In the intent schema, do I use NUMBER type for the year or DATE type? If I use the DATE type, is the year number simply the first four characters? (I don't want the users to have to say a complete date within a year.)
alexa skills kitvoice-user interface
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

Steve A avatar image
Steve A answered
Barry, Pretty sure you'd use DATE. So, if the "Date" slot is of DATE type, then IntentName {nineteen sixty five|Date} will return "1965" Steve
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.