I noticed that if I specify the date format as *3/14/2001 1:30:55 PM (General Date), it localizes correctly, for instance our UK users see the date as DD/MM/YYYY. However, specifying the date format as m/d/yyyy, it does not localize on UK user machines. Please see the attached image, the format in blue, when specified, correctly renders the date in UK locale. The format in red does not.
Is this expected behavior? What are the different options so that the date localizes correctly?
@GilbertQ I do not believe that is the problem. Everything is same, but the same date field, when formatted as the first style format, correctly localizes on my UK user's browser but not when formatted as the second one. See the picture below:
Hi @sanimesa ,
Could you please try to update the date type of related date fields as "Using locale" in Power Query Editor?
In addition, please check and set the proper language preference for the browser. You can refer following documentation:
@yingyinr This is not working as expected. When I set my browser language to English, UK, the date/time formatted dates correctly display in DD/MM/YYYY. However, the plain date formatted field, even when I set the locale to UK, is not displaying right.
Let me know what you need to look at this issue.
Hi @sanimesa ,
Can I know how did you set the data type for these plain date formatted fields in Power BI Desktop and browser? Could you please provide the related screenshot of these plain date formatted fields with sample data and display format? Thank you.
@yingyinr Here are some screenshots. I have a simple SQL server table with a date field. All me sql server, desktop etc. settings are default US English
Here is what I did:
1. Set my browser setting to UK English.
2. First, format the date on desktop with the date-time format and published.
Result: date fields correctly displated as DD/MM/YYYY
3. Formatted the same date field as a date format.
Result: the date is not taking the browser localization.
Let me know if you need more information.
Hi @sanimesa ,
Could you please try to complete the following steps in Power BI Desktop and check if it can solve your problem?
1. Open Power BI Desktop
2. Set the locale as "English (Unitied Kingdom)" (File->Options and Settings->Options->CURRENT FILE-->Regional Settings)
3. Open the report file and change the data type of related date fields as "14/03/2001(dd/mm/yyyy)"
4. Save the report and republish it to Power BI Service
@yingyinr I can certainly try but what happens to my US users then? Also, the fact that the two different date formats are behaving differently seems like a bug to me.
Check out a full recap of the month!
Check out the winners of the recent 'Can You Solve These?' community challenge!
Join us for an in-depth look at the new Power BI features and capabilities at the free Microsoft Business Applications Launch Event.