473,218 Members | 1,795 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,218 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 7392
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Grumfish | last post by:
Is there a way to tell Java what localization to use so applications and the compiler doesn't default to the system's setting? I'm using a computer with Windows 2000 with a regional setting of...
1
by: nerman | last post by:
Hello I have a problem with the regional settings. I have set the regional settings of the web server to display the numbers in this format 123.456,78 But when I open my web site all number are...
2
by: Cesar Ronchese | last post by:
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...
6
by: Niyazi | last post by:
Hi, We have and IBM AS400 and I belive the reional setting is Turkish. The IBM Client-Access for Windows that install in our PC (WIN XP SP2) set to Turkish characters. Now my PC has English...
12
by: magister | last post by:
Hello, I know I can set the Culture to what I want, but shouldn't the current culture be taken from the regional settings on the web server's control panel!!! Mine is set to "united kingdom"...
0
by: Harsha Shah | last post by:
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 ->...
7
by: Fred Flintstone | last post by:
I'm writing a VB.Net windows forms application. This line of code: Personal.EffectiveDate = GridRow2.Cells("New Value").Value.ToString.Trim Fails with this error: Cast from string...
16
by: Colmag | last post by:
I've written an application with vb.net 2003 (framework 1.1) which automates a 3rd party viewing/printing application (via an activex control). I've released several versions over the last year...
6
by: Janette | last post by:
Hi, I have done a lot of reading before doing this posting, but I just can't find a solution that makes sense. eg http://support.microsoft.com/default.aspx/kb/306044 - Behavior of Date/Time...
1
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
0
by: VivesProcSPL | last post by:
Obviously, one of the original purposes of SQL is to make data query processing easy. The language uses many English-like terms and syntax in an effort to make it easy to learn, particularly for...
3
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 3 Jan 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). For other local times, please check World Time Buddy In...
0
by: mar23 | last post by:
Here's the situation. I have a form called frmDiceInventory with subform called subfrmDice. The subform's control source is linked to a query called qryDiceInventory. I've been trying to pick up the...
0
by: abbasky | last post by:
### Vandf component communication method one: data sharing ​ Vandf components can achieve data exchange through data sharing, state sharing, events, and other methods. Vandf's data exchange method...
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 7 Feb 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:30 (7.30PM). In this month's session, the creator of the excellent VBE...
0
by: fareedcanada | last post by:
Hello I am trying to split number on their count. suppose i have 121314151617 (12cnt) then number should be split like 12,13,14,15,16,17 and if 11314151617 (11cnt) then should be split like...
0
by: stefan129 | last post by:
Hey forum members, I'm exploring options for SSL certificates for multiple domains. Has anyone had experience with multi-domain SSL certificates? Any recommendations on reliable providers or specific...
0
by: MeoLessi9 | last post by:
I have VirtualBox installed on Windows 11 and now I would like to install Kali on a virtual machine. However, on the official website, I see two options: "Installer images" and "Virtual machines"....

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.