Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update rule.md #9907

Merged
merged 8 commits into from
Feb 20, 2025
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Date formats should always be kept consistent across your application, more impo

<!--endintro-->

![Figure: Operating System's Regional Settings](../../assets/BetterInterface_RegionalSettings.jpg)
![Figure: Operating System's Regional Settings](https://github.com/user-attachments/assets/71dd7833-71d6-470d-90a1-9258bf0e51a1)

::: bad
![Figure: Bad example - Screens with inconsistent date formats](../../assets/BadExampleDP.gif)
Expand All @@ -44,10 +44,23 @@ Figure: Bad Example - Using hard coded formatting string
'Initial CultureInfo settings for the application
Public initialCulture As CultureInfo
...

...
txtDateCreate.Text = CType(txtDateCreate.Tag, System.DateTime).ToString(initialCulture.DateTimeFormat)
```

::: good
Figure: Good Example - Using culture info to format datetime
:::

## Browser language settings

It is required to set web browser language to English (Australia) after modifying the computer reginal and language settings. This ensures proper formatting and compatibility, particularly when downloading web pages or accessing specific web content.

For example, Power BI is date format agnostic and will honor the setting in your browser. If your browser language is set to US English, it may cause date formatting issues.

![Figure: Date format incorrect due to unmodified web page language settings](https://github.com/user-attachments/assets/45a1c7a2-ab73-4053-a3c6-3a19f09895fc)

Go to Browser Setting | Language | Select English (Australia) as the top priority language:

![Figure: Set English (Australia) as the top priority in the browser language settings](https://github.com/user-attachments/assets/b160fec5-dc18-4c5b-9210-2e7546fb5993)
Loading