BESSER-Bot-Framework
BESSER-Bot-Framework copied to clipboard
Extraction of date and time values from a datetime entity
I didn't find an easy way to get only the date or the time from a datetime entity. If I get the value of the parameter:
date = predicted_intent.get_parameter('date').value
I will receive a string containing the complete datetime: 2023-09-14T00:00:00+02:00
One possible solution is to add two methods (e.g., time_value and date_value) to extract the specific time and date, Alternatively, two additional entities, date and time, could be provided separately.