Microsoft
Software
Hardware
Network
Question : 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.
Answer : Locale problem in C# program that I implemented. How to fix?
Once you get System date or time, use standard ways to extract month & day instead of splitting like
datetime.Month;
datetime.Year
This will be independent of locale;
Random Solutions
need to restore an old exchange 2003 priv1.edb file into an exchange 2007
imagejpeg doesn't work?
Outlook 2007 pst filesize blown out
Windows 2008 SP2 & Exchange 2007 CCR failover did not work properly
Host file changes after entry is made
Move Mailbox from Exchange 2003 to Exchange 2010
Can you connect SATA disks externally to a RAID controller that has no e.sata connectors?
How to make an image load quickly?
Variable substitution in href - is it possible?
How do I encrypt password so I can save it in registry vb.net