I have a winforms application written in C#, I need to know how to change local system's date format from my application.
Will it require the application to run under administrator's permission ?
I have a winforms application written in C#, I need to know how to change local system's date format from my application.
Will it require the application to run under administrator's permission ?
You need to change the date format in the registry:
RegistryKey key = Registry.CurrentUser.OpenSubKey(@"Control Panel\International", true);
key.SetValue("sShortDate", "d/M/yy");
key.SetValue("sLongDate", "dd/MM/yy");
It might take a few seconds until you see it changed.
If you're only changing the registry for the current user you don't need admin privileges (source)