Top "Cultureinfo" questions

Represents information about a specific culture including the names of the culture, the writing system, and the calendar used, as well as access to culture-specific objects that provide information for common operations, such as formatting dates and sorting strings.

CultureInfo.CurrentCulture is giving me the wrong culture

I'm trying to get my clients' country, so I use CultureInfo.CurrentCulture. Problem is that when my Canadian customers use …

c# cultureinfo currentculture
Culture sensitive ParseFloat Function in JavaScript?

Do anyone have suggestion for writing culture sensitive ParseFloat Function in JavaScript, So that when I have a string 100,000.22 in …

javascript cultureinfo
Convert.ToString(Decimal, IFormatProvider) or String.Format

i've seen the question Odd decimal type behavior for ToString(IFormatProvider) this is my test code // Define an array of …

c# cultureinfo iformatprovider
How to make a dropdown list of all cultures (but no repeats)

I'm trying to make 2 dropdown lists. The top one offers all cultures, (but no repeats). Example: English, Spanish, Filipino After …

c# asp.net globalization cultureinfo
How to print DateTime in Persian format in C#

What is the simplest way to print c# DateTime in Persian? currently I'm using : static public string PersianDateString(DateTime d) { …

c# datetime cultureinfo persian
CurrentThread.CurrentUICulture is set correctly but get always en-US

I am working on a multilingual website with two languages to start with Arabic and English I have set language …

c# asp.net cultureinfo currentuiculture
How to get timezone from properties in CultureInfo

I have a string, which contains a timestamp (yyyy-mm-dd hh:mm:ss). I can create a CultureInfo object based on …

c# cultureinfo timezone
Change culture based on a link MVC4

I have a curiosity related to culture change in MVC. I tried in 2 ways, but apparently I was wrong somewhere. …

c# .net asp.net-mvc asp.net-mvc-4 cultureinfo
Setting culture for session

Each user of my application will choose their country, after which it will be stored in a cookie and stored …

asp.net cultureinfo uiculture
When should I specify CurrentCulture or InvariantCulture and when should I leave it unspecified?

What is the best practice for specifying CurrentCulture or InvariantCulture and not specifying the culture at all? From what I …

c# globalization culture cultureinfo currentculture