Link to home
Start Free TrialLog in
Avatar of jazzIIIlove
jazzIIIloveFlag for Sweden

asked on

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

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

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of jazzIIIlove

ASKER

madhubabus:
I got it both as in my question, it seems the day and month are in reversed order, will it cause any problem?

miladaniel:
WindowsForms
That culture thing may help, let me check on this.

Regards.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial