cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Vbv
Regular Visitor

change language of FormatDateTime

Dear,

 

I have a scheduled flow every month. I would like to have a dynamic text with the name of the current month.

 

So i have this in my text: 

formatDateTime(utcNow(),'MMMM') resulting in this 'June' (current month).
However i want to change this to dutch language, so how do i change this?
 
Cheers
1 ACCEPTED SOLUTION

Accepted Solutions
v-yamao-msft
Community Support
Community Support

Hi @Vbv ,

 

Not like PowerApps, Microsoft Flow doesn’t have the ability to change language of date time within formatDateTime function.

 

However, you could consider using Translate text likes below for your scenario:

1.PNG

 

Please take a try with it on your side.

 

Best regards,

Mabel

 

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

View solution in original post

3 REPLIES 3
abm
Super User
Super User

Hi @Vbv ,

 

There is a flow step called 'Microsoft Transalator'. To use this service you need to sign up to Azure.

 

https://www.microsoft.com/en-us/translator/business/trial/

 

https://azure.microsoft.com/en-us/pricing/details/cognitive-services/translator-text-api/

 

Also Google offers Transalating Text service  API

 

https://cloud.google.com/translate/docs/translating-text

 

You probably need to use the google API transalting service via HTTP flow step method.

 

Thanks

 

 



Did I answer your question? Mark my post as a solution!

If you liked my response, please consider giving it a thumbs up


Proud to be a Flownaut!

Learn more from my blog
Power Automate Video Tutorials
v-yamao-msft
Community Support
Community Support

Hi @Vbv ,

 

Not like PowerApps, Microsoft Flow doesn’t have the ability to change language of date time within formatDateTime function.

 

However, you could consider using Translate text likes below for your scenario:

1.PNG

 

Please take a try with it on your side.

 

Best regards,

Mabel

 

Community Support Team _ Mabel Mao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Kristóf
Microsoft
Microsoft

Hello @Vbv had the some similar case only with Hungarian Month names. Create a variable and a switch control. Since there are only 12 months I took the effort to provide translation for myself. To be more accurate I left December and November as defaults cases. 

 

Switch controlSwitch control

 

 

 

 

 

 

 

 

 

 

 

 

 

Update: More effective way was to create a small JSON dictionary in a Compose action called monthsTableJSON

 

{
  "January": "Január",
  "February": "Február",
  "March": "Március",
  "April": "Április",
  "May": "Május",
  "June": "Június",
  "July": "Július",
  "August": "Augusztus",
  "September": "Szeptember",
  "October": "Október",
  "November": "November",
  "December": "December"
}

 

 On the action where the translated month text need to be placed use this expression:

outputs('monthsTableJSON')?[formatDateTime(utcNow(),'MMMM')]

 

Helpful resources

Announcements
 WHAT’S NEXT AT MICROSOFT IGNITE 2022

WHAT’S NEXT AT MICROSOFT IGNITE 2022

Explore the latest innovations, learn from product experts and partners, level up your skillset, and create connections from around the world.

Register for a Free Workshop.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

September Events 2022

Check out all of these events

Attend in person or online, there are incredible conferences and events happening all throughout the month of September.

Users online (3,070)