Doubt in Regional Options

  • Thread starter Thread starter Cesar Ronchese
  • Start date Start date
C

Cesar Ronchese

Hello All!

I have a .Net project that, in my machine, the dates are showed in this
format: dd/mm/yyyy. But, when I install the project in some customer
machines, the date is showed in this format: dd/mm/yyyy hh:mm:ss.

My doubt is, I can resolve this problem on which form?

a) changing the Windows Regional Options
b) setting the Internationalization classes of my AppDomain
c) none alternatives above :pp

If option is A, I didnt find that format to change in Regional Options
(Control Panel). Exists in other place?
If option is B, how can I change that specific date format? This change
affect all assemblies dependant of my AppDomain?
If option is C, I accept any suggestion!!

Tks in advance!

Cesar
 
Hi Cesar,

Before you start changing the settings in your program, some regional
settings in a W98/ME computer are set using the keyboardsettings, did you
try that already?

For the programs you can try
\\\set culture
Dim myCI As New System.Globalization.CultureInfo("nl-NL")
Application.CurrentCulture = myCI

\\\time in other format
Me.Text = Now.ToString("D", New System.Globalization.CultureInfo("es-ES"))

I hope this helps a little bit?


Cor
 
humm, I can't see any date format settings in Keyboard item in Control
Panel.

But, I will try change the culture, I hope this change affects all
dependencies of my AppDomain, too.

Thx!
Cesar
 
Back
Top