471,357 Members | 1,068 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,357 software developers and data experts.

Regional Setting from vb.net application

Hello,

I have an application that requires specific date format on user's system,
so they have to do the setting throgh control panel-> regional setting ->
customise -> date -> short format -> dd/MM/yyy.
If I want to do the same thing automatically when my vb.net application
start, then how can I, any samples available,
Thanks in advance.
Harsha


Jul 22 '05 #1
4 7227
Harsha,

If your program is well written, than you never need this.

It is almost forever better to remove those wrong written parts than to
change culture settings.

Therefore can you write why it is needed?

Just my opinion.

Cor
Nov 22 '05 #2
Harsha,

If your program is well written, than you never need this.

It is almost forever better to remove those wrong written parts than to
change culture settings.

Therefore can you write why it is needed?

Just my opinion.

Cor
Nov 22 '05 #3
"Harsha Shah" <ha********@hotmail.com> schrieb:
I have an application that requires specific date format on user's system,
so they have to do the setting throgh control panel-> regional setting ->
customise -> date -> short format -> dd/MM/yyy.
If I want to do the same thing automatically when my vb.net application
start, then how can I, any samples available,


I suggest to take a look at the 'System.Globalization' namespace,
'CultureInfo', and 'DateTimeFormatInfo'. In addition to that, you can
specify a certain format string for 'Date.ToString', Date.Parse', and
'Date.ParseExact'.

Applications SHOULD NOT require a certain date format to be applied to the
whole system.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 22 '05 #4
"Harsha Shah" <ha********@hotmail.com> schrieb:
I have an application that requires specific date format on user's system,
so they have to do the setting throgh control panel-> regional setting ->
customise -> date -> short format -> dd/MM/yyy.
If I want to do the same thing automatically when my vb.net application
start, then how can I, any samples available,


I suggest to take a look at the 'System.Globalization' namespace,
'CultureInfo', and 'DateTimeFormatInfo'. In addition to that, you can
specify a certain format string for 'Date.ToString', Date.Parse', and
'Date.ParseExact'.

Applications SHOULD NOT require a certain date format to be applied to the
whole system.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Nov 22 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Grumfish | last post: by
1 post views Thread by nerman | last post: by
2 posts views Thread by Cesar Ronchese | last post: by
6 posts views Thread by Niyazi | last post: by
reply views Thread by Harsha Shah | last post: by
7 posts views Thread by Fred Flintstone | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.