How to add days in a date with the format dd/mm/yyyy in powerapps?

Asked

Viewed 104 times

0

I’m taking a date from a table and adding days on the count in powerapps. Apparently on the computer works, but when I use the powerapps app on the phone doesn’t work, the date comes changed, instead of coming dd/mm/yyyy comes mm/dd/yyyy. The code below creates the value for the label 18:

Text(DateValue(Label17.Text);"[$-pt-BR]dd/mm/yyyy";"pt-BR")

And the code below adds the amount of days on the date:

DateAdd(DateValue(Label18.Text);Value(ThisItem.Qtde_dias_para_contato);Days)

I do not understand why it works on the computer and not on the mobile phone. It is some configuration of the mobile?

1 answer

-1

is because in the text you have defined the BR Standard, and in Dateadd you need to pass the formatting because the default is US

Browser other questions tagged

You are not signed in. Login or sign up in order to post.