I have a .exe file which will generate date in MM/DD/YY
if I set short date
format in Regional Settings as DD/MM/YY
. So when I execute the .exe manually, I get correct output.
But when I use C# Windows Service ( running as Local System), the .exe gives a different format. It means, the C# Windows Service does not read Regional Settings.
I am running on Windows XP and C# 2.0