cultureinfo Questions

4

Solved

What is the best way to format a decimal amount to string for UI display in the correct culture info?
Incorporator asked 26/2, 2010 at 12:56

2

Solved

I have the following Arabic date in the Umm Al-Qura calendar that I want to parse into a .NET DateTime object: الأربعاء‏، 17‏ ذو الحجة‏، 1436 This date is equivalent to September 30th 2015 in the...
Buxtehude asked 30/9, 2015 at 8:36

2

Solved

I want to convert DateTime object to string. What I want to achieve is following things: Get Date only out of it if Time is 00:00:00. Get Date and Time if both are present. I want to achieve this...
Wigeon asked 19/8, 2015 at 8:19

1

Solved

I would like to write a method that gives me the 3 letters - representing the day, month, year - from a datetimeformat. So in en-US culture my desired return values would be (plus the separator) ...
Graiae asked 21/6, 2015 at 14:28

1

I need to change the current culture of the application to th-TH I have tried to do this to create an object of the following type and I intend to assign it to the current thread's CurrentCulture P...
Magdamagdaia asked 15/4, 2015 at 8:47

7

Solved

I have a string that looks like this: "9/1/2009". I want to convert it to a DateTime object (using C#). This works: DateTime.Parse("9/1/2009", new CultureInfo("en-US")); But I don't understand ...
Mall asked 2/9, 2009 at 16:7

3

Solved

I'm working on an app that may be seen in many countries in the world. There are not many countries that show hours, minutes and seconds with something other than : as a seperator but there are a f...
Aspa asked 2/10, 2012 at 22:22

3

Solved

In C#, I am using CultureInfo.GetCultureInfo(myCulture) but the string variable may not come in a good format, is there a way to try parse the string first or verify it first.
Ferritin asked 10/9, 2012 at 5:6

3

I need to perform a SELECT queries that are insensitive to case and accents. For demo purposes, I create a table like that: create table table ( column text collate nocase ); insert into table v...
Barrows asked 27/4, 2012 at 18:39

4

Solved

I know how to convert an ISO 3166-2 code to the full English name, e.g. "US" to "United States" by using RegionInfo. However, how can I do the opposite, i.e. that takes "United States" and returns...
Repressive asked 24/12, 2014 at 0:13

5

Solved

I am developing a multilingual program in C# on Windows How to change Windows writing language on certain actions... e.g. to change from English to Arabic on focus event. Thanks
Abdominous asked 19/7, 2010 at 8:16

4

Solved

My application is setted with pt-BR culture (Date is dd-mm-yyyy) in web.config: <globalization enableClientBasedCulture="false" requestEncoding="utf-8" responseEncoding="utf-8" fileEncoding="is...
Fustanella asked 18/1, 2012 at 12:59

1

Solved

I've found that the test results are different on my machine and the build server. I've managed to find the single line that differs. This is a string comparison. The two strings differ in case of ...
Rodrigo asked 8/9, 2014 at 15:5

1

Solved

Background: I have a problem with a component, which changes the current thread culture to "en-US" every time after a call to a specific method of it. Further in my process that leads to problems,...
Tremain asked 25/6, 2014 at 15:41

3

Solved

I'm having a problem when I deploy my web application in different servers. There seems to be an inconsistency in some DateTimeFormat patterns, like ShortDatePattern, using the same culture (pt-BR)...
Raffish asked 31/3, 2011 at 20:2

3

I am using this standard code for populating list of countries: static void Main(string[] args) { List cultureList = new List(); CultureInfo[] cultures = CultureInfo.GetCultures(CultureTypes.Al...
Formation asked 29/6, 2010 at 9:39

4

I am making an application. The application uses date format such as "2012-11-21 15:22:35". I already know that the format is "yyyy-MM-dd HH:mm:ss". But how can I find programmatically the date &am...
Taeniasis asked 22/11, 2012 at 13:39

2

I am working on a multilingual website with two languages to start with Arabic and English I have set language to Arabic (ar-ae) in IE and also on FireFox but it always get me the English version ...
Hunterhunting asked 17/12, 2012 at 13:29

4

Solved

Using: Console.WriteLine(System.Globalization.CultureInfo.CurrentCulture.ToString()); I get "en-US". What should I change in my control panel settings ( Region and Language ? ) to get so...
Twodimensional asked 23/1, 2014 at 17:50

2

I have a method which will be called inside a thread and those threads are managed by threadpool. The method is calling a DLL's method which unfortunately requires a specific locale for being perf...
Innovation asked 1/1, 2014 at 18:51

2

Solved

There is any way to convert a boolean value to a localized string. I have tried: var x = true; var culture = new CultureInfo("en-US") x.ToString(culture) // returns True culture = new CultureInf...
Willing asked 16/12, 2013 at 20:11

2

I need to get culture string from browser's language. I thought about getting it from javascript like this: var userLang = navigator.language || navigator.userLanguage; but it gives me on...
Corrosion asked 11/12, 2013 at 13:47

2

Solved

I need to write decimal value to ms access database, but i have a problem with conversion values to decimal in different cultures. Have a values from file, which separates by commma. I try: publi...
Croce asked 1/12, 2013 at 8:7

2

According to the answer in this question async/await call should preserve CurrentCulture. In my case, when I call my own async methods, the CurrentCulture is preserved. But if I call some method of...
Mizzle asked 19/11, 2013 at 8:55

3

Solved

I'm confused about MonthGenitiveNames and MonthNames. There are month names as values of both, so what is the difference between MonthGenitiveNames and MonthNames. Also why is there "blank" for a ...
Amerson asked 30/10, 2013 at 6:17

© 2022 - 2024 — McMap. All rights reserved.