web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / A very annoying datefo...
Power Apps
Answered

A very annoying dateformat bug

(0) ShareShare
ReportReport
Posted on by 125

When I put the text 

Text(Date(Year(Now());Month(Now()); 1); "mmmm yyyy");

I get a perfectly working string "november 2016" as I want.

 

However, when I click anywhere in my project, i.e. switch the focus of the function ribbon to anything else, my function automatically gets updated to

Text(Date(Year(Now());Month(Now()); 1); "[$-nl-BE]mmmm yyyy");

with the text (translated from Dutch): "The language code nl-BE is not supported" and my formerly working string doesn't work anymore. I get an error with a blank text.

 

Is there an option to toggle the automatic appendation of the language code, seeing as this is sabotaging my work


EDIT: here is the bug in action

 

 

 

Categories:
I have the same question (0)
  • Verified answer
    Meneghino Profile Picture
    6,949 on at

    Hi Lars, I reproduced your error with nl-BE.  But I was able to edit manually the nl-BE to nl-NL and it gave me no error.

    To see the list of supported languages, you can use this suggestion:

    "To see the list of supported language tags, type Value( "1", ) in the formula bar or advanced view and scroll through the list of locales suggested for the second argument."

    This comes from here: https://powerapps.microsoft.com/en-us/tutorials/function-language/

     

    However on my system it still showed the name of the month in English:

     

    Capture3.JPG

  • LarsDP Profile Picture
    125 on at

    Thank you very much. Changing my region from BE to NL solved this issue. Somewhat strange that the auto-appended language code  that caused an error can't be turned off, but knowing the solution steers me more in the direction to tamper some more before 'ranting'. Thank you once again!

  • AndyPennell Profile Picture
    Microsoft Employee on at

    To get the month in Dutch, add "nl-NL" as an argument e.g.

    Text(Now(), "mmmm yyyy", "nl-NL")

     

    The [$-nl-nl] syntax is to parse the format string, which doesnt change things for dates, only numbers. To change the output locale, add an argument as shown.

  • Meneghino Profile Picture
    6,949 on at

    Thanks @AndyPennell

    I noticed this additional locale parameter a couple of days ago, and have been using it heavily since then.  It is very useful also for parsing text inputted dates in a chosen locale for the app, without worrying about the user's locale.

    Thanks for continuously improving PowerApps, I can get it to do almost anything I want now when working with cloud databases.

  • Panoone Profile Picture
    22 on at

    When I use the locale parameter my function is re-written.

     

    Text(BaseSalary * 1.095, "$#,###","en-GB")

    becomes

    Text(BaseSalary * 1.095, "[$-en-GB]$#,###")

    In addition, when I use en-GB I get a dollar sign. And when I use en-US I get a pound sign! Smiley LOL

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 977

#2
Valantis Profile Picture

Valantis 664

#3
11manish Profile Picture

11manish 530

Last 30 days Overall leaderboard