I've created an App with a form connected to an Excel table.
My form has one date picker that is linked to a column in my excel file formatted as Short Date.
My date picker (DateValueInival1) has the following expression on the DefaultDate property:
If(
varinival1 = Blank(),
Today(),
varinival1
)
The variable varinival1 is set on the OnSelect property of a button, with the following expression:
Set(
varinival1,
Text(DateValueIniVal1.SelectedDate)
)
I have performed multiple tests and the date was being passed to the excel table with the correct format (DD/MM/YYYY).
But, since I have shared my app with my coworkers I've noticed that sometimes the date starts to be passed with the following format: 2023-02-28T00:00:00.000Z and the excel column format automatically changes to General which also messes up the previous rows inserted (they start appearing as an integer number)
And when that happens, all the following rows will have the date in that format until I go to my excel file and manually edit those rows. After that, the date will be passed correctly again (DD/MM/YYY) until the same problem occurs.
I have tried to pin point the action that causes this change of behavior but was unable to, since I noticed this happening when my coworkers performed the same operation (they pressed the button to submit once, and it was ok, submited again, it was ok and they submited again and it was not).
I have also tried to wrap the expression in the DefaultDate property of my date picker in both Text and DateValue functions but the problem persisted.
I have also assured that my coworkers are using the same regional format as my self.
Do you have any idea of what can be causing this problem?
Thank you