I am coding a MVC 5 internet application that is being deployed to Azure
. I am wanting to setup browser based culture so that DateTime
values are displayed in the correct format for different cultures.
Here is my web.config
code:
<globalization culture="auto:en-US" uiCulture="auto:en-US" enableClientBasedCulture="true"/>
Is this all that needs to be done? When viewing a view after the website has been published to Azure
, only IE displays the DateTime
in my current OS format. Both Google Chrome and Firefox are not using my current OS format.
Why is the DateTime
value not being displayed in my current culture format (en-NZ)
Thanks in advance.
EDIT
I have removed the enableClientBasedCulture="true"
from the web.config
code, and the browser is still not displaying the DateTime
values in my correct culture.
From the documentation for the globalization Element (.NET 4), the attribute does nothing at the current time.
enableClientBasedCulture:
Optional attribute. This attribute is not in use at this time.