all groups > dotnet general > may 2004 >
You're in the

dotnet general

group:

Doubt in Regional Options


Doubt in Regional Options Cesar Ronchese
5/31/2004 11:39:33 PM
dotnet general:
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

Re: Doubt in Regional Options Cor Ligthert
6/1/2004 10:05:21 AM
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

[quoted text, click to view]

Re: Doubt in Regional Options Ronchese
6/1/2004 11:14:51 AM
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


[quoted text, click to view]

AddThis Social Bookmark Button