Questions tagged [currentculture]

a Thread property in the .NET System.Threading namespace or a CultureInfo property in the .NET System.Globalization namespace

CurrentCulture refers to either the Thread.CurrentCulture property in the .NET System.Threading namespace or the CultureInfo.CurrentCulture property in the .NET System.Globalization namespace.

In both cases, this property is used to get or set the System.Globalization.CultureInfo object that represents the culture of the current thread.

Resources

Related Tags

139 questions
-1
votes
2 answers

How to handle currency format of decmal from sql inside of GridView Eval?

My local machine is Turkish, if i run my asp.net aplication , i can see easly my decimal value from mysql database like below.it is my desire and everything is right what i want. i used "Text='<%#Eval("Veri","{0:N}")%>'". it is working great in my…
loki
  • 2,926
  • 8
  • 62
  • 115
-1
votes
1 answer

Decimal Parse is throwing exception after changing NumberFormat Seperator in Global Thread

I have changed Global Application Culture thread for currency number format in (fr-CA) as shown below. Thread.CurrentThread.CurrentCulture.NumberFormat.CurrencyPositivePattern = 1; …
Amit Kumar
  • 1,059
  • 3
  • 22
  • 43
-3
votes
2 answers

Format date as "MM/dd/yyyy" from a unstructured string in c# regex and

I have a Unformatted String (Eg: Sundy/03-1 3-1949) I need to convert this to "dd/MM/yyyy". My plan is to remove text, spaces, special characters and keep numbers only (Eg: Sundy/03-1 3-1949 --> 03131949) Then convert the numbers to in date…
h3r
  • 43
  • 1
  • 1
  • 7
-3
votes
1 answer

How to get EST date time without changing Machine Time Zone and writing timezone conversion code?

My machine time zone is IST therefore when I check DateTime.Now in C# it will always show current datetime of that timezone. I have to get datetime in EST when I do DateTime.Now. I don't want to change timezone of machine and don't want to convert…
SSD
  • 1,041
  • 3
  • 19
  • 39
1 2 3
9
10