Hi all:
when I use sap.ui.model.type.Date, and set value as empty string(''). There always occur an error "The given date instance isn't valid". Dose anyone know how to fix it?
<DateRangeSelection
visible="{path: 'supportKB>/dateFilter/selectedOption',formatter: '.formatter.formatDateSelectionVisible'}"
placeholder="{path: 'supportKB>/dateFilter/selectedOption',formatter: '.formatter.formatDatePlaceholder'}"
change="handleChangebyDateRange"
enabled="{=!${/search/isLoading}}"
value= "{
'type': 'sap.ui.model.type.DateInterval',
'parts': [
{
'type': 'sap.ui.model.type.Date',
'path': 'supportKB>/dateRangeSelection/start'
},
{
'type': 'sap.ui.model.type.Date',
'path': 'supportKB>/dateRangeSelection/end'
}
]
}" />