Hi to all,
I am trying to post a "Date" from a Date Picker field in my App to a Power Automate Flow that creates a folder in SharePoint and updates folder proprieties.
In this Thread (https://powerusers.microsoft.com/t5/Building-Power-Apps/Trying-to-pass-Date-from-powerapps-to-Flow-to-Sharepoint/td-p/1946520) they suggest using this formula:
Text(DatePicker1.SelectedDate, "yyyy-mm-dd")
I don't know if I am doing something wrong, but when writing DatePicker1 in my code, the SelectedDate function doesn't appear:

The field DatePicker1 in my App is called dataDecesso.
As you can see, I don't have the option .SelectedDate.
I have set my flow to receive the data value as follows:


The date that I want to to post in my flow is used to update a property, a date column, of the folder in SharePoint

I searched far and wide on the internet but the only solution provided is the first function I copied on this post.