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

View solution in original post

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

View solution in original post

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
thirdimage

Power Automate Community User Group Member Badge

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

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (3,774)