473,387 Members | 1,561 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.

Programatically set XP regional settings to UK

Hi All,
By default, our machines regional settings are set to US which causes
problems with date formats until they are manually changed to UK. Is there
any way to set the regional settings to UK when the database is opened?

We work with the format dd/mm/yyyy not mm/dd/yyyy
OS = XP pro
Access Version = 2002 SP3

TIA

Mark
Nov 13 '05 #1
3 1775
On Mon, 21 Mar 2005 15:52:40 GMT, "Mark" <ma**********@ntlworld.com>
wrote:
Hi All,
By default, our machines regional settings are set to US which causes
problems with date formats until they are manually changed to UK. Is there
any way to set the regional settings to UK when the database is opened?

Can't answer this one but ----
We work with the format dd/mm/yyyy not mm/dd/yyyy

----- if you use a date in an SQL string, it MUST be in US format, ie
mm/dd/yyyy.

If you need a date in code you can always use an alpha format eg
CDate("1 January 2005") which is the safest in my opinion.

I think the web site of one of the regulars has some handy tips on
using dates in Access but I can't lay my hands on it at present.

David


Nov 13 '05 #2
PS:
http://allenbrowne.com/ser-36.html is what I was thinking of.
David

Nov 13 '05 #3
David Schofield wrote:
If you need a date in code you can always use an alpha format eg
CDate("1 January 2005") which is the safest in my opinion.


Strictly in code, not for outside world though. I once thought I was
safe exporting dates with the month spelt but was caught out when my
client was running it and the dates came out with the month names in
Turkish. The other end trying to import the data was a bit miffed :-)

--
This sig left intentionally blank
Nov 13 '05 #4

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...
4
by: Jonathan | last post by:
Dear All, I am trying to set a webserver to use French regional settings for testing ASP pages. According to http://support.microsoft.com/kb/q306044, for IIS5, this is a matter of changing...
2
by: Bob Dydd | last post by:
Hi Everbody Question Changing the regional settings ie. from UK to US AUS etc, Access retains the original currency format that the application was created in. So if an mdb that is written...
3
by: Emmanuel | last post by:
I want to know the decimal separator and the group separator character that the user has set in Regional Settings in Control Panel. I tryied to use...
1
by: John | last post by:
Hi, The following behavior when using J# vs. C# is really bothering me. When I have the regional settings on my workstation set to a non-US settings (eg: Danish); it seems that J# disregards...
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"...
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...
0
by: arunbojan | last post by:
Hi friends, i know how to retrive the regional and language options of control panel in vb.net Eg: CultureInfo.CurrentCulture.DateTimeFormat.ShortDatePattern() my question is, how to...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.