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
2 answers

PlatformNotSupportedException when calling a Web Service method

Ok, I'm really stumped with this one. I have this Compact Framework application which calls your standard .NET web service. This has been working pretty well for a while, but recently we were asked to make this software work on another Windows CE…
JayPea
  • 9,551
  • 7
  • 44
  • 65
0
votes
3 answers

Looking for String operations edge cases. What do I need to test?

I am getting to the last stage of my rope (a more scalable version of String) implementation. Obviously, I want all operations to give the same result as the operations on Strings whenever possible. Doing this for ordinal operations is pretty…
Alexey Romanov
  • 167,066
  • 35
  • 309
  • 487
0
votes
1 answer

make program to work with different language/date format vb

I coded a program for work to keep tracks of our projects linked to an access database. The code is written in VB.NET The thing is I use a computer with dates in French. The whole thing is coded according to that language. But now I have to install…
0
votes
1 answer

What does "the string representation returned by ToString is required to take into account the current system culture" means?

In the Microsoft Developer Network documentation, there's that sentence in the description of the Exception.ToString method: Where the exception contains culture-sensitive data, the string representation returned by ToString is required to take…
user5455540
0
votes
2 answers

DateTime.Parse, Latvian culture settings

I am sending in a string in dd/MM/yyyy format, which is then being parsed into lv-LV culture as set per the web.config globalization setting. I am then comparing the date to DateTime.Now to see if it is in the past. The problem is, DateTime.Parse…
mpaton
  • 789
  • 3
  • 14
0
votes
0 answers

C# CultureInfo ignoring impersonation

I want to get the CultureInfo used by another user (that is not logged on). I thought I could use impersonation as described in this question, but CultureInfo seems to ignore the impersonation. If I do WindowsIdentity.GetCurrent().Name) I get the…
TheHvidsten
  • 4,028
  • 3
  • 29
  • 62
0
votes
1 answer

CultureInfo result in visual studio is different between windows 8 and windows 10

I found that CultureInfo class returns information such as number format which is different when executing in windows 8.1 and 10. I created a simple console application to conform which is given below. In windows 8.1 the result of conversion is…
0
votes
1 answer

CultureInfo CurrentCulture does not correspond to the system culture

I my .Net application I use CurrentCulture to format dateTime and numbers. When on the Localhost this works like a charm and the format changes when I change the system's culture. When I publish my application though it does not. As a test I added…
user6386826
  • 131
  • 1
  • 1
  • 10
0
votes
0 answers

How to show c# datetime in current system format

I have following problem. My application shows some data in datagrid and one of the datagrid columns contains date and time that is shown in system format. When I change system format of date or time (Change date and time settings -> Change date and…
gzsun
  • 209
  • 1
  • 11
0
votes
0 answers

String to Decimal conversion with Culture

I have a piece of code that read data from excel file store it in DB. `decimal num = Convert.ToDecimal(rowOptions["excel_cl_name"]);` But it does not work properly for NL culture. Let say when value is 878,90 it should be 878.9000 but it becomes…
user1926138
  • 1,464
  • 7
  • 34
  • 53
0
votes
3 answers

Where to put "new CultureInfo("nl-NL")" if DayOfWeek is already declared?

Where do I put the new CultureInfo("nl-NL")? The user needs to give a date. The programe needs to show the day in Dutch. DateTime date; System.Console.Write("give date (DD/MM/JJJJ) : "); date =…
Kartercas
  • 15
  • 1
  • 6
0
votes
1 answer

.Net CurrentCulture ShortDateFormat doesn't update according to PC regional settings

I'm configuring a new server and have been experiencing issues with parsing dates where the following code worked perfectly on the old server but not the new server. IFormatProvider fpCanada =…
MPaul
  • 2,553
  • 3
  • 20
  • 34
0
votes
1 answer

Google Maps not working when umbraco PT or FR culture is specified

I've done just about everything to try get the maps to work for the French and Portuguese cultures The map renders fine when a culture of en-US or even ar-DZ is selected, I require the maps to render for 2 additional sites, the one is French and the…
0
votes
1 answer

ConvertTo-CSV -UseCulture ignores current thread's culture

Question Is it possible to force PowerShell to export to CSV in French format when run in a Windows Session with en-GB culture? More Info I'm hoping to export some data to CSV using the French culture rules (i.e. CSV's delimiter set to semicolon,…
JohnLBevan
  • 22,735
  • 13
  • 96
  • 178
0
votes
4 answers

How to display MSSQL exception messages in a specified language (English) in C#?

How to display MSSQL exception messages in C# in a specified language (English) instead of in the UI language? I tried changing the thread's CultureInfo but it didn't change anything.
lesderid
  • 3,388
  • 8
  • 39
  • 65