我想在使用 @sys.date 之后只打印日期而不是时间,而不是在 dialogflow 中使用 webhook

I want to print only date not time after using @sys.date without using webhook in dialogflow

user phrase - I want to travel on 14th jan 2020.

response - so, you want to travel on 2020-01-14T12:00:00+05:30

在这里,我想回复如下 -

response - so, you want to travel on 2020-01-14

我不想使用 dialogflow。

你确定你抓到的是 @sys.date 实体而不是 @sys.date-time

根据Dialogflow System Entities Documentation@sys.date应该return:

@sys.date matches common date references such as "January 1, 2015" or “The first of January of 2015” and returns a reference value in ISO-8601 format: "2015-01-01"