Questions tagged [cultureinfo]

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.

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.

Reference

CultureInfo on MSDN

1135 questions
0
votes
4 answers

Parsing a value with decimal points

I have a string value for amount that is coming from the DB. The local culture on my system is Portuguese(pt-br). As a result, the amount with decimal values is read as, for ex: 3,4 for 3.4. I need to parse this in such a way that it displays 3.4…
Akshatha
  • 592
  • 1
  • 11
  • 28
0
votes
1 answer

Date.js culture info is confusing me

I'm including date.js (from datejs.com) and the en-IE culture info script. If I call alert(Date.CultureInfo.dateElementOrder) I see the correct dmy, but if I try to interpret the date 02/03/01 I get 3 Jan 2001 and not 2 Feb 2001. I'm not sure…
TRiG
  • 10,148
  • 7
  • 57
  • 107
0
votes
3 answers

Localize dataannotation error messages as per culture

In my WPF appliation, I have property defined as following [Required(AllowEmptyStrings =false, ErrorMessageResourceName ="Msg1", ErrorMessageResourceType =typeof(**.Resources.**))] public string Name { get { …
user2185592
  • 368
  • 1
  • 8
  • 24
0
votes
1 answer

Storing French (decimal values) in database?

I have my form set in french as well, and it automatically changes the text format to use ','. However When I try to insert my values into the database it says cannot convert nvarchar to decimal? Worst case, Is there a way I can disable the…
Robert
  • 51
  • 1
  • 2
  • 4
0
votes
0 answers

Text format issue

I am facing a text issue in my wpf application. User can enter some text in the textbox for ex: TAB1B0/TAB1B0. The second string is with some formatting(copied from excel). I have to remove this formatting and show the text as TAB1B0. I am not…
0
votes
3 answers

c# how can I read String of double correctly despite the number Format?

Hi guys my problem is this. I made a software in c# that is able to read and edit dxf files, I have to give this software to an american company but I have discovered the following problem: Where I live we use the ',' to separate the integer part…
0
votes
2 answers

Invalid datetime format exception for Norwegian culture

In my web.config file I have this line: ASP.Net nicely takes care of all date/time formats. Applying the…
EvilDr
  • 8,943
  • 14
  • 73
  • 133
0
votes
1 answer

Change datetime format from one to another programmatically

In my program, I need to change the input datetime information from Turkish (d.M.yyyy) language to English (M/dd/yyyy). When client edits datetime information in Turkish datetime format(For Example: 24.9.2015), i need to convert this information in…
0
votes
0 answers

Set cultureinfo globally in VB.NET

I am writing an application in VB.NET which will run on systems where the culture settings recognize comma (,) as the decimal marker, but I would like program to use the punctuation (.) as a decimal marker. I know I can use the…
zo0x
  • 136
  • 1
  • 6
0
votes
1 answer

MS Test agent threads not picking up system culture

It seems that the agent threads spawned by MS Test when running the tests do not have their current culture set to the current system culture. More specifically, the Thread.CurrentThread.CurrentCulture property always returns the "en-US" culture,…
Gabriel S.
  • 1,347
  • 11
  • 31
0
votes
1 answer

WP 8.1 : Get county name by Region Two letter code or country numeric code

(I appoligize by advance for my bad English :) ) I'm actually working on a Windows Phone store application (wp8.1), and I need to display a selector with country name (and few other informations). I am using libphonenumber library to get country…
0
votes
2 answers

Export Data to CSV with Vietnamese

I am developing a website that allow to export data in MSSQL to a CSV file but i have a trouble that my Data Base contain Vietnamese so when i export it to CVS file. All of Vietnamese has error! How could i do to export Vietnamese without error with…
0
votes
1 answer

Get language and country code (ISO 639-1)

Is there a solution for xamarin-ios to get the current culture in the format like (en_US, de_CH, ..)? I read so many articles in the web and here on stackoverflow. But I can't find a nice solution for this. Following code snippet returns not this…
Joehl
  • 3,671
  • 3
  • 25
  • 53
0
votes
4 answers

System.Globalization.RegionInfo complete list of valid culture inputs

I've got a list of ISO 3166 two-letter country codes acquired from an external source. For each, I create new System.Globalization.RegionInfo(countryCode) and occasionally one is invalid resulting in an ArgumentException "Culture name 'xx'…
Kenn
  • 2,379
  • 2
  • 29
  • 38
0
votes
1 answer

Dates in Querystring using url.action going awry

I am aware that the way that dates are dealt with in the querystring use invariant culture. however, i cannot seem to get a solution to deal with this issue to suit my needs. I have a list of items which I filter using a posted form, the filters are…
nat
  • 2,185
  • 5
  • 32
  • 64