In a canvas app, I have a DataPicker, connected to a sharepoint list.
In the Format attribute of the DataPicker, I ‘ve put
“ If(Not IsBlank(DateValue3.SelectedDate); Date(Year(DateValue3.SelectedDate); Month(DateValue3.SelectedDate); Day(DateValue3.SelectedDate)))”
I put a text label, with Text function
“If(Not IsBlank(DateValue3.SelectedDate); Date(Year(DateValue3.SelectedDate); Month(DateValue3.SelectedDate); Day(DateValue3.SelectedDate)))”
I’m in Europe, so in the text label I see 2/01/2025 ( 2 january 2025), but in the datapicker I see “gio 2 gen 2025”.
When I insert the value in the form in the sharepoint list I have this error:
The string was not recognized as a valid dateTime.There is an unknow word starting at index1.
What can I do ? I think that the error depends on the different valorisation between dataPicker and sharepoint list (in this list if i insert a new record the data is in the format dd/mm/yyyy).