cancel
Showing results for 
Search instead for 
Did you mean: 
Reply

Text conversion of Date to Name of the Day is not working

Hello @v-monli-msft@v-micsh-msft

 

We have users from different regions in Europe, so their PCs language will be in Dutch or French or German etc.

So, I am using Text function to derive the name of the day (English) from the Date to standardise in one language.

For example; Date(input) = '07/12/2017', Day(result) = 'Thursday'

 

Formula being used: Upper(Left(Text(DateValue(ThisItem.DAY,"fr-FR") + 0 , "[$-en-US]ddd"), 3) )

We are still seeing name of the day in their own PC language even we are forcing to show them in English.

 

We have tried Microsoft translator but it has limitations of 150 times per day/per user which is not reliable solution for us.

Is there any other way to solve this issue?

 

Kind regards,

Naga

1 ACCEPTED SOLUTION

Accepted Solutions
Meneghino
Level 10

Re: Text conversion of Date to Name of the Day is not working

You need to use the third argument of the Text() function like this:

Upper(Text(Today(),"[$-en-GB]ddd","fr-FR"))

Please visit my blog for more ideas:

https://baizini-it.com/blog

3 REPLIES 3
Meneghino
Level 10

Re: Text conversion of Date to Name of the Day is not working

You need to use the third argument of the Text() function like this:

Upper(Text(Today(),"[$-en-GB]ddd","fr-FR"))

Please visit my blog for more ideas:

https://baizini-it.com/blog

Community Support Team
Community Support Team

Re: Text conversion of Date to Name of the Day is not working

Hi @Nagaviswanath,

 

@Meneghino is right, the second argument of the text() function only restricts the date format, you will need to use the third one to specify the language.

Adding the Text() function reference:

Text function in PowerApps

Please refer to the Syntax part.

"

Syntax

Text( Number, DateTimeFormatEnum [, ResultLanguageTag ] )

  • Number - Required. The number or the date/time value to format.
  • DateTimeFormat - Required. A member of the DateTimeFormat enumeration.
  • ResultLanguageTag - Optional. The language tag to use for the result text. By default, the language of the current user is used.

Text( Number, CustomFormat [, ResultLanguageTag ] )

  • Number - Required. The number or the date/time value to format.
  • CustomFormat - Required. One or more placeholders enclosed in double quotation marks.
  • ResultLanguageTag - Optional. The language tag to use for the result text. By default, the language of the current user is used.

"

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Re: Text conversion of Date to Name of the Day is not working

Thanks @Meneghino for pointing me to correct my formula. 

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

Follow PowerApps on Twitter

Stay Up-to-Date by following PowerApps on Twitter

Top Community Contributors for July 2019

Top Community Contributors for July 2019

Let's thank our top community contributors

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

FifthImage

Dynamics 365 and Power Platform April 2019 Release notes

Features releasing from April 2019 through September 2019!

Users Online
Currently online: 83 members 3,878 guests
Please welcome our newest community members: