Setting a date format in ASP.NET web.config globalization tag?

Posted by Jens Ameskamp on Stack Overflow See other posts from Stack Overflow or by Jens Ameskamp
Published on 2010-03-18T08:20:41Z Indexed on 2010/03/18 8:31 UTC
Read the original article Hit count: 442

Filed under:
|
|

In our web.config I am using the following tag to determine the interface language of an ASP.NET website.

<globalization
   enableClientBasedCulture="true"        
   culture="auto:en-GB"
   uiCulture="auto:en"/>

This works as expected: Client wo request a specific localisation get it, everybody else is happily looking at the en-GB settings.

Due to company policy I need to change the date format to the ISO 8601 standard format (YYYY-MM-DD) for everybody. Is this possible at a central place in the web.config or do I need to change this manually in every instance?

Addition: Would it be possible to do get this date format when restricting the interface to english?

Thanks! =)

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about globalization