Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 677255
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:01:10+00:00 2026-05-14T01:01:10+00:00

In our web.config I am using the following tag to determine the interface language

  • 0

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?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:01:10+00:00Added an answer on May 14, 2026 at 1:01 am

    You should build your own culture by using CultureAndRegionInfoBuilder

     class Program
            {
                static void Main(string[] args)
                {
                    CultureInfo ci;
                    CultureAndRegionInfoBuilder cib = null;
                    try
                    {
                        // Create a CultureAndRegionInfoBuilder object named "x-en-GB".
                        Console.WriteLine("Create and explore the CultureAndRegionInfoBuilder...\n");
                        cib = new CultureAndRegionInfoBuilder(
                            "x-en-GB", CultureAndRegionModifiers.None);
    
                        // Populate the new CultureAndRegionInfoBuilder object with culture information.
                        ci = new CultureInfo("en-GB");
                        ci.DateTimeFormat.ShortDatePattern = "yyyy-MM-dd";
                        //ci.DateTimeFormat.FullDateTimePattern = "yyyy-MM-dd";
                        //ci.DateTimeFormat.LongDatePattern = "yyyy-MM-dd";
    
    //...
                        //...
                        cib.LoadDataFromCultureInfo(ci);
    
    
    
    
                        // Populate the new CultureAndRegionInfoBuilder object with region information.
                        RegionInfo ri = new RegionInfo("GB");
                        cib.LoadDataFromRegionInfo(ri);
    
                        Console.WriteLine("Register the custom culture...");
                        cib.Register();
    
    
    
                    }
                    catch (Exception e)
                    {
                        Console.WriteLine(e);
                    }
    
                    Console.WriteLine("Create and explore the custom culture...\n");
                    ci = new CultureInfo("x-en-GB");
    
                    //Thread.CurrentThread.CurrentCulture = ci;
                    //Thread.CurrentThread.CurrentUICulture = ci;
    
                    Console.WriteLine(DateTime.Now.ToString(ci));
    
                    Console.ReadLine();
                }
            }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

ASP.NET 3.5 Classes throughout our solution referenced ConfigurationManater.AppSettings[] to get appSettings (from web.config). We
I am using ASP.NET Web forms and sending an automated email through our SMTP
We are using ASP.NET (Framework 2) and setting database connection strings (SQL2005) in web.config.
I just upgraded one of our web apps to ASP.NET 4.0. It is using
I am trying to encrypt the system.web.membership element within the Web.Config of our .Net
We're using CruiseControl.Net to do our continuous integration of our web applications. we build
I'm using asp.net 4 routing in one of our new product and it works
I have a web.config of a functioning MOSS server with our custom settings and
All of our applications have Debug=False in the web.config and Release DLL's. We have
I am using a Java Web Service which is developed by one of our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.