Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

Troubleshooting
Research
Professional Opinions
Ask a Question
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

troubleshooting Question

Locale problem in C# program that I implemented. How to fix?

Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden asked on
.NET ProgrammingC#
5 Comments1 Solution353 ViewsLast Modified:
Hi there;

I have Locale (Regional Settings) problem in C# program that I implemented. I implemented the program in Locale of US but the target seems to use TR Locale.

Now, the client doesn't want to change his Locale to US. So, I have to fix it.

1) Is there library or function to supress the Windows Locale, I mean can I set Locale value as EN but with library to supress the Windows Locale?

To give an example, one functionality of the program is to have the System Time and write into a text file. In my US locale, it's as 7/6/2010 as 7 dentoes July whereas when I run the program in TR locale, the file content becomes 06.07.2010. I was splitting the date with '/' character and it fails in TR locale naturally. So, what should be the easiest way?

Best regards.
ASKER CERTIFIED SOLUTION
Avatar of madhubabus
madhubabus

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Commented:
This problem has been solved!
Unlock 1 Answer and 5 Comments.
See Answers