How to get DateTime format settings from Control Panel

  • Thread starter Thread starter Egil Winther
  • Start date Start date
E

Egil Winther

Hi everyone,

I'm having difficulties retrieving datetime formats that has been customized
in the control pane.

I can get the cultureinfo, but I get same settings regardless of what i do
in the control panel.

Any ideas?

Brgds
Egil Winther
¨ShipNet AS
 
The CurrentUICulture defaults to the current user UI language settings but
does not reflect the individual settings. You must get and set them manually
from HKEY_CURRENT_USER\Control Panel\International and change the
CultureInfo object accordingly.

Markus
 
The CurrentUICulture defaults to the current user UI language settings but
does not reflect the individual settings. You must get and set them
manually
from HKEY_CURRENT_USER\Control Panel\International and change the
CultureInfo object accordingly.
For formatting info you should use CurrentCulture, never CurrentUICulture.
CurrentUICulture is used for UI language settings (as you mentioned).
 
Thanks guys,

I have tried using the CurrentCulture, but it does not seem to change
whatever I do in the control panel.

I will try to use the registry setting and see what happens.

Brgds
Egil Winther
ShipNet AS
 
Back
Top