473,396 Members | 1,900 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,396 software developers and data experts.

date default settings on Access

Hi, can someone tell me how I change the settings in my Access 97 to
default to English dates rather than US dates?

I notice all my dates like 1/5/2007 is being treated as 5th Jan 2007
rather than 1 May 2007.

Colm

May 2 '07 #1
3 8611
"colmkav" <co******@yahoo.co.ukwrote in message
news:11*********************@c35g2000hsg.googlegro ups.com...
Hi, can someone tell me how I change the settings in my Access 97 to
default to English dates rather than US dates?

I notice all my dates like 1/5/2007 is being treated as 5th Jan 2007
rather than 1 May 2007.
That is a Windows setting, not an Access setting. Further if you are talking
about how date literals are interpreted in code and queries, any time you use an
ambiguous format Access will *always* assume US format first unless that results
in an invalid date value. For those situations you are best served using a
non-ambiguous format like ISO yyyy-mm-dd.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com
May 2 '07 #2
thx. the windows setting which I have changed resolved them problem.
Not sure what you mean in the second part. Surely if you set the
windows settings to English dates Access will not treat dates as
English ones.

when I called dateadd("d", 1, dt). where dt is the date 1/5/2007. I
get 2/5/2007 returned. before I made this change I got 1/6/2007.

What cases does Access choose US?
On 2 May, 13:29, "Rick Brandt" <rickbran...@hotmail.comwrote:
"colmkav" <colmj...@yahoo.co.ukwrote in message

news:11*********************@c35g2000hsg.googlegro ups.com...
Hi, can someone tell me how I change the settings in my Access 97 to
default to English dates rather than US dates?
I notice all my dates like 1/5/2007 is being treated as 5th Jan 2007
rather than 1 May 2007.

That is a Windows setting, not an Access setting. Further if you are talking
about how date literals are interpreted in code and queries, any time you use an
ambiguous format Access will *always* assume US format first unless that results
in an invalid date value. For those situations you are best served using a
non-ambiguous format like ISO yyyy-mm-dd.

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

May 2 '07 #3
colmkav wrote:
thx. the windows setting which I have changed resolved them problem.
Not sure what you mean in the second part. Surely if you set the
windows settings to English dates Access will not treat dates as
English ones.

when I called dateadd("d", 1, dt). where dt is the date 1/5/2007. I
get 2/5/2007 returned. before I made this change I got 1/6/2007.

What cases does Access choose US?
As stated, when using literal date strings in queries or code.

UPDATE TableName
SET DateField = #1/9/2007#

Will result in that field being updated to January 9th 2007 regardless of
the regional settings in Windows. If you wanted September 1st you would
need to use a non-ambiguous format like...

#1-Sep-2007#
#2007-09-01#
#September 1, 2007#

--
Rick Brandt, Microsoft Access MVP
Email (as appropriate) to...
RBrandt at Hunter dot com

May 2 '07 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: androtech | last post by:
Hello, I'm looking for a function that returns a date range for a specified week number of the year. I'm not able to find functions like this anywhere. Any pointers/help would be much...
6
by: Jerome | last post by:
Hi, I know this is an old problem and I've already tried to look the solution up on the web but I didn't find what I need. So, there's the following situation: I've got an ASP page with a...
15
by: Simon Brooke | last post by:
I'm investigating a bug a customer has reported in our database abstraction layer, and it's making me very unhappy. Brief summary: I have a database abstraction layer which is intended to...
1
by: Delatere | last post by:
Hello, can anabody help? in the following part i cannot pass de desired default value In the module of the mbd i declared: Global datum_Glo As String in a form (Dossier_FRM)i did
5
by: m_t_hill | last post by:
Running MS Access 2000 MS Windows XP Pro This has caused me a lot of hair loss in the last few days so would appreciate any help. I am running code to append/update a local access database...
3
by: Marauderz | last post by:
Hello guys, got a little question regarding the regional language settings . Anyway I got a Windows 2003 Server machine that was installed with the date format "dd/MM/yyyy" and location still...
2
by: tricard | last post by:
Good morning, I am writing code to create a packing list number that is based on the date entered from the workstation that the user is on. However, I do not know how to determine the date...
1
by: Doug | last post by:
Hi, I created a short date field. The format is dd/mm/yyyy when displayed. The input mask is set to 99/99/00;0 (default, I didn't type anything). If I edit an existing date, say change...
30
by: fniles | last post by:
On my machine in the office I change the computer setting to English (UK) so the date format is dd/mm/yyyy instead of mm/dd/yyyy for US. This problem happens in either Access or SQL Server. In the...
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?
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
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
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,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

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.