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

Excel file created with OleDbConnection uses invalid CultureInfo

I'm using an OleDbConnection to create an Excel file: String bewegungenDateiname = System.IO.Path.ChangeExtension(System.IO.Path.GetTempFileName(), ".xls"); string strConnectionString = @"Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +…
Sam
  • 28,421
  • 49
  • 167
  • 247
0
votes
4 answers

Double to String Format text format

i have the follwing lines of code double formId=2013519115027601; txtEditFormID.Text = formid.ToString(); it gives me output 2.0135191150276E+15 if i write txtEditFormID.Text = formId.ToString("0.0", CultureInfo.InvariantCulture); it gives…
decoder
  • 886
  • 22
  • 46
0
votes
1 answer

2 culture settings for same web application?

Is it possible to use fr-CA culture setting for dates (franch dates) and en-CA for numbers (period decimal separator) in ASP.NET Web.config? Thank you
Olivier
  • 309
  • 2
  • 8
  • 22
0
votes
3 answers

Converting any date format to a UK format

I have a form on which the user enters a date value using a KendoUI widget. This widget sets the date as per the local pc's culture settings. The problem is because in the dev environment the local pc and server is set to US culture setting and in…
user20358
  • 14,182
  • 36
  • 114
  • 186
0
votes
1 answer

Why is Environment.NewLine showing up as square character?

I'm working with a .Net windows application. On my machine, a form displays Environment.NewLine correctly as a new line. However, on a tester's machine, the same Environment.NewLine is being displayed as a square character. On both of our machines,…
ATDev
  • 21
  • 2
0
votes
1 answer

How to get Client Local Date from TimeZone in asp.net?

I have my database server located in U.S. The user makes entry from INDIA the date must be stored of client and not the server. but, unfortunately the server date is stored in database. I am showing the entries to user only of the current date that…
SHEKHAR SHETE
  • 5,964
  • 15
  • 85
  • 143
0
votes
1 answer

Globalisation : Change language directly in program

I have 3 ressource files : AppRessources.resx, AppRessources.fr.resx, AppRessources.nl.resx. I add to my page a ListPicker (it's a combobox) that has 3 languages (English, French and Dutch). When an item is selected, I change the CurrentCulture and…
0
votes
1 answer

System Culture in a SIlverlight Application

I can't figure out how to get the CultureInfo of the Installed System on the Client Machine. There is the CultureInfo.InstalledUICulture Property, but it seems to be unavailable in Silverlight. Regards Jonny
Johannes Wanzek
  • 2,825
  • 2
  • 29
  • 47
0
votes
3 answers

How can I change default date time format from English to Farsi?

I want to change showing date time format from English to Farsi in backed Umbraco. I apply this setting in web.config.But did not work. (date picker(publish at & Remove at) in properties tab)
x19
  • 8,277
  • 15
  • 68
  • 126
0
votes
2 answers

How to validate DateFormat of specific culture without Time part

I need to validate user input on all culture dates using TryParse() or TryParseExact() method. DateTime.TryParse(args.Value, new CultureInfo("nl-NL", false), DateTimeStyles.None, out date) This code validate: 01-10-2011 1-10-2011 01-10-2011…
mimo
  • 6,221
  • 7
  • 42
  • 50
0
votes
1 answer

format currency in specific way for only one culture

I am working on a multi lingual application that shows product prices in different currencies. I use the .net library to format currencies based upon culture eg. CultureInfo current = CultureInfo.CurrentCulture; return…
amateur
  • 43,371
  • 65
  • 192
  • 320
0
votes
1 answer

How to get all Cultures to avoid CultureNotFoundException

Guys I'm developing an application that will run across multiple machines. I've recently introduced Cultures in it to support all currencies. I have 2 main development PCs and I move code between them. One is a Windows 8 laptop, while the other is a…
Ahmad
  • 12,886
  • 30
  • 93
  • 146
0
votes
3 answers

Issue with "invalid" DateTime string

I am having a problem with a DateTime string not being recognized. With our licensing program, you generate a key which has an expiration DateTime associated with it. However, some of our customers in another part of the world are unable to apply…
codewario
  • 19,553
  • 20
  • 90
  • 159
0
votes
1 answer

How to do currency-based number validation?

I have a Winforms Application, in which I have a Combo Box, and a text box. Combo box has Currency symbols as follows: USD GBP CAD AUD JPY EUR ISK PLZ TRL etc .. The user first selects one currency symbol from the above, and then types in a value…
Ahmad
  • 12,886
  • 30
  • 93
  • 146
0
votes
1 answer

Setting the CurrentUI in an ASPX project

I am building a Multi-Lingual site in webforms aspx project, and I am thinking of the best solution to do this. I have some images on the MasterPage, and once clicked, I am calling a Jquery method, that should redirect to a web method. In turn I…
JMon
  • 3,387
  • 16
  • 63
  • 102