can anyone help me to validate date using entity type?

can anyone help me to validate date using entity type?
I have tried by using script but not getting expected output. Can anyone please guide me over this?

Can you explain more about what you mean about “validate” please?

The Date entity type will ensure that only valid dates, from a vast myriad of formats and expressions, are extracted from the user’s utterance, and the entity value will be a string in ISO-8601 date (YYYY-MM-DD) format.

If you want to perform additional calculation and parsing of that date in script then I would recommend using the MomentJS library that is available through koreUtil.moment - koreUtil Libraries - Kore.ai Documentation

Additionally you can guide the entity extraction process through EntityRules - https://developer.kore.ai/docs/bots/how-tos/entity-rules/#Date_type_entity