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
1 answer

SharePoint 2010 DateTime Culture Format Error

I'm trying to pass a Datetime to SharePoint list. For german datetime format it works, but it needs to be variable so i tried this: itemsList[i]["FTPDate"] = DateTime.ParseExact(entity.FTPDate.ToString("dd MMM yyyy"), "dd MMM yyyy", Culture); but I…
Markus_DE_HH
  • 1,061
  • 3
  • 13
  • 29
0
votes
4 answers

C# - show culture on numbers

I want to show culture on integers, but "n" number format gives me double format output. Here is a small example int i = 10000; Console.WriteLine(i.ToString("n", CultureInfo.CreateSpecificCulture("en-US"))); This gives me out put as 10,000.00 I…
Kishor
  • 4,006
  • 7
  • 30
  • 47
0
votes
1 answer

VS C# CultureInfo set permanently to value within the IDE?

I've got a German VisualStudio 9.0. Working with doubles and doing quite some parsing, I came into trouble because of the decimal separator. What I'm looking for is a way to either switch the whole IDE (and therefore all the projects created with…
rdoubleui
  • 3,554
  • 4
  • 30
  • 51
0
votes
1 answer

Culture info comma doesn't read my decimal as decimal

The value of my_waste in db which I enter with comma is: 16.78 I make a selection via linq and: res.Add("testdb", p.my_waste); and i get 1678. I tried: res.Add("test", double.Parse(p.my_waste.ToString(),…
petko_stankoski
  • 10,459
  • 41
  • 127
  • 231
0
votes
2 answers

Decimal.Parse Issue

I have a problem with decimal parse, I know this question been asked a loot, but none of the solution worked for me, and i've been stuck in here for two days now. My problem is my CultureInfo is set to fr_Fr and when i put the code below an error…
SKGeek
  • 81
  • 2
  • 12
0
votes
1 answer

culture locale make up

The following is the culture locale for Belgium with the french language: fr-BE fr is the Two Letter ISO Language Name But what is the correct term/name for the "BE" aspect of the culture local?
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
1 answer

date format in .net - how do I say use the given cultureinfo?

WHen using the CultureInfo to render a number, #,000.00 does not literally mean place a , for the thousands separator and a . for the decimal. It means use the correct character from that culture at those locations. However, using "mm-dd-yyyy"…
David Thielen
  • 28,723
  • 34
  • 119
  • 193
0
votes
1 answer

Could DataCulture be the reason why the user is asked to re-logon on HTTPS?

I am using Windows Authentication. I have this in my code: CultureInfo CultureInfoDateCulture = new CultureInfo("fr-FR"); CultureInfo provider = CultureInfo.InvariantCulture; provider = new CultureInfo("fr-FR"); try { startDateTime =…
Ryan S
  • 3,210
  • 17
  • 48
  • 79
0
votes
1 answer

Changing Thread.CurrentThread.CurrentCulture on a ASHX Handler

I want to change the language in my website. I thought i could do it using a Handler, so the drop down would go for http://domain.com/Handler.ashx?language=en-US, f.i. So, it calls the handler, that has this code: string selectedLanguage =…
Eduardo Mello
  • 925
  • 3
  • 15
  • 32
0
votes
0 answers

Application hangs after changing language From “En-Us” to any global language in control panel

I created a WinForms application using C#. When I try to change the culture info, my application gets hanged. Microsoft.Win32.SystemEvents.UserPreferenceChanged += new …
user1764824
  • 9
  • 1
  • 3
0
votes
1 answer

.NET using long date format

In my applications I have a grid which is bound to the object. This object has properties of DateTime type and it shows my dates in short date format specified in Control Panel. How can I force it to use long date format? I guess new CultureInfo…
axe
  • 2,331
  • 4
  • 31
  • 53
0
votes
1 answer

What new thing I have to add in my code for using Culture Info?

EmpCLass.dtDOB = Convert.ToDateTime(txtdob.Text, new CultureInfo("en-US")); Error m getting: The type or namespace name 'CultureInfo' could not be found(are you missing a using directive or an assembly reference)
mannu
  • 1
  • 2
0
votes
0 answers

CultureAndRegionInfoBuilder not found

I want to add custom culture, I have added the following code but I am getting the following error: "the type or namespace CultureAndRegionInfoBuilder could not be found ,are you missing directive or assembly reference" Although I am using…
aayyad
  • 57
  • 5
  • 10
0
votes
1 answer

How to override some default CurrentCulture values

I need to override the default DayNames of the current (or specified) CurrentCulture object. I have tried to accomplish this in several ways: 1) At the Global.asax level: protected void Application_PreRequestHandlerExecute(object sender, EventArgs…
Mikhail
  • 9,186
  • 4
  • 33
  • 49
0
votes
1 answer

Browser Building Wrong Query String

This is kinda bizarre... On my form I have two buttons (both are ). Button 1 (B1) has a onclick="update()" where calls an Ajax with the Data parameter filled. The second button (B2) uses a old-fashion submit. By the way, both…
Rafa Borges
  • 576
  • 1
  • 7
  • 17