I have created a button on my PowerApps form that is linked to a sharepoint list which 'on select' sets the variable as follows
Set(varRef,{Value:Concatenate("New_",Text(DataCardValue24.SelectedDate,"ddmmyyyy"))})
It seems to work OK as the result under formula bar is "New_27012021"
The problem is when I focus on another element in the form and then return to the button the formula has been changed automatically to
Set(varRef,{Value:Concatenate("New_",Text(DataCardValue24.SelectedDate,"[$-en-AU]ddmmyyyy"))}) which no longer provides a date value ie the result displayed under the formula bar is "New_"
Any suggestions re a fix would be appreciated