I have a web application that at different points forces users to enter dates as well as display dates for users. When debugging (and when the site is running on our test and intermediate servers), date formats are displayed in the format dd / mm / yyyy (when using DateTime.ToShortDateString ()). These servers (and my development environment have "English (United Kingdom)", which are installed as the language under the regional versions of Windows. Everything is fine. So far, the live server dates are displayed in mm / dd / yyyy format, even if the live server is - still has the language βEnglish (United Kindgom).β I saw this question explaining how to parse a date in a specific format, and I already know how to get the date in the format of the requested string ( DateTime.ToString("dd/MM/yyyy") ), but I'm curious that another OS setting on a real server is called Isn't this a mismatch ? I also saw this question , but it doesn't seem to answer my question.
Additional information: in test and intermediate environments System.Threading.Thread.CurrentThread.CurrentUICulture.Name = "EN-US" System.Threading.Thread.CurrentThread.CurrentCulture.Name = "EN-RU"
And in the living environment, System.Threading.Thread.CurrentThread.CurrentUICulture.Name = "EN-US" System.Threading.Thread.CurrentThread.CurrentCulture.Name = "EN-US"
source share