473,387 Members | 1,517 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,387 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 7417
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.